From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26250 Path: news.gmane.org!not-for-mail From: "Johan Sandblom" Newsgroups: gmane.comp.tex.context Subject: randomize a color Date: Mon, 6 Mar 2006 16:26:35 +0100 Message-ID: <97a06f070603060726l1a614560t@mail.gmail.com> Reply-To: johan.sandblom@ki.se, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141658920 27622 80.91.229.2 (6 Mar 2006 15:28:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 15:28:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 06 16:28:36 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGHdI-0006Jr-FV for gctc-ntg-context-518@m.gmane.org; Mon, 06 Mar 2006 16:28:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C3F51278B; Mon, 6 Mar 2006 16:28:24 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31320-01; Mon, 6 Mar 2006 16:28:24 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 917D712793; Mon, 6 Mar 2006 16:26:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 169B312793 for ; Mon, 6 Mar 2006 16:26:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30329-07-4 for ; Mon, 6 Mar 2006 16:26:37 +0100 (CET) Original-Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by ronja.ntg.nl (Postfix) with SMTP id EDEDF1278B for ; Mon, 6 Mar 2006 16:26:36 +0100 (CET) Original-Received: by zproxy.gmail.com with SMTP id o1so1260575nzf for ; Mon, 06 Mar 2006 07:26:35 -0800 (PST) Original-Received: by 10.65.186.17 with SMTP id n17mr2595747qbp; Mon, 06 Mar 2006 07:26:35 -0800 (PST) Original-Received: by 10.64.241.5 with HTTP; Mon, 6 Mar 2006 07:26:35 -0800 (PST) Original-To: ntg-context@ntg.nl Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26250 Archived-At: The following produces one red square and two black ones, as opposed to one red and two randomly perturbed but also red ones I was hoping for. To my poor understanding this usage seems to comply with that defined in mp-tool.mp. What am I doing wrong. Regards, Johan \setupcolors[state=start] \definecolor[tilered][r=.425, g=0, b=0] \definecolor[smudge][r=.1, g=.1, b=.1] \defineoverlay[page][\useMPgraphic{page}] \setupbackgrounds[page][background=page] \startuseMPgraphic{page} fill unitsquare scaled 2cm withcolor \MPcolor{tilered} ; fill unitsquare scaled 2cm shifted (2cm,0cm) withcolor \MPcolor{tilered} randomized .1 ; fill unitsquare scaled 2cm shifted (4cm,0cm) withcolor \MPcolor{tilered} randomized \MPcolor{smudge} ; \stopuseMPgraphic \starttext test \stoptext -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell