From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75945 Path: news.gmane.org!not-for-mail From: Troy Henderson Newsgroups: gmane.comp.tex.context Subject: MetaPost circular_shade Command Date: Wed, 2 May 2012 17:41:35 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2101523341==" X-Trace: dough.gmane.org 1335998507 20357 80.91.229.3 (2 May 2012 22:41:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 May 2012 22:41:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 03 00:41:44 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SPiEx-0002lG-Qq for gctc-ntg-context-518@m.gmane.org; Thu, 03 May 2012 00:41:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BB507101EC; Thu, 3 May 2012 00:41:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9acR3yLB8t0A; Thu, 3 May 2012 00:41:40 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C932101E8; Thu, 3 May 2012 00:41:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 947B3101E8 for ; Thu, 3 May 2012 00:41:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tp7kDsee76rf for ; Thu, 3 May 2012 00:41:37 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 80199101E6 for ; Thu, 3 May 2012 00:41:37 +0200 (CEST) Original-Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q42MfZ6N026976 for ; Thu, 3 May 2012 00:41:36 +0200 Original-Received: by vbbey12 with SMTP id ey12so1182440vbb.14 for ; Wed, 02 May 2012 15:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hilAEO+fbiEoQzzDlgkuYICuUDMKTiFPVJdSQ/UPTbk=; b=iYcID0+BG/GPKVSlInJA+SINdH+TLLFm362D+G4M/ZtgCT3/8PKqZPLrF8NWZyyY1W IwwhHDt5uwOZytUtZdZKmV5GvnYigUtg+ITwlred3IAC7mJWmcDyhjEKftinLD6YC8pr /8Vh+vaLJXDdcVWx4DU6XXVGQEMeE2DG4heuMiX7WlxSwVH9X9sBmLeqmofSidGjVXPa 8Of99Dt0SSUzUS+dVBKq7R3Rfne5ky4MMHkBmxjhQrzSgkaEZhRQLqNVmip4lMc/tkf9 WiVzErTFjMjhKfgv19NDPxDIj3VldEwpnyeL43KSClA8Zskuqqr25uS+asRecNNschRp tyxw== Original-Received: by 10.52.24.129 with SMTP id u1mr6485967vdf.77.1335998495260; Wed, 02 May 2012 15:41:35 -0700 (PDT) Original-Received: by 10.220.176.202 with HTTP; Wed, 2 May 2012 15:41:35 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TH5aFA8C - 67a96403b15b - 20120503 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:75945 Archived-At: --===============2101523341== Content-Type: multipart/alternative; boundary=bcaec501c560baff7904bf15638c --bcaec501c560baff7904bf15638c Content-Type: text/plain; charset=ISO-8859-1 The command circular_shade(fullcircle scaled 4in,0,white,red); in MetaPost does not act as I think it should. It performs a gradient fill starting at the center of the circle by filling this center in white (which is expected), and changing the color as the radius/diameter changes (which is also expected), but the final radius appears to have a RGB color of about (1,0.29,0.29) which is not red (thus is unexpected) since red = (1,0,0). However, the command circular_shade(unitsquare shifted (-0.5,-0.5) scaled 4in,0,white,red); creates a gradient filled square whose center is white and whose northeast, northwest, southwest, and southeast corner are red (as somewhat expected) and thus whose east, north, west, and south tip are about (1,0.29,0.29) like the circle. I would appreciate an explanation of why this acts like it does, and (more importantly), let me know how I can get a gradient filled circle whose center gets filled with a RGB color c and outer radius color d. Clearly, circular_shade(fullcircle scaled 4in,0,c,d); does not do this. Thanks in advance, Troy Henderson --bcaec501c560baff7904bf15638c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The command

circular_shade(fullcircle scaled 4in,0,white,red);
in MetaPost does not act as I think it should.=A0 It performs a gradient = fill starting at the center of the circle by filling this center in white (= which is expected), and changing the color as the radius/diameter changes (= which is also expected), but the final radius appears to have a RGB color o= f about (1,0.29,0.29) which is not red (thus is unexpected) since red =3D (= 1,0,0).=A0 However, the command

circular_shade(unitsquare shifted (-0.5,-0.5) scaled 4in,0,white,red);<= br>
creates a gradient filled square whose center is white and whose nor= theast, northwest, southwest, and southeast corner are red (as somewhat exp= ected) and thus whose east, north, west, and south tip are about (1,0.29,0.= 29) like the circle.

I would appreciate an explanation of why this acts like it does, and (m= ore importantly), let me know how I can get a gradient filled circle whose = center gets filled with a RGB color c and outer radius color d.=A0 Clearly,=

circular_shade(fullcircle scaled 4in,0,c,d);

does not do this.
Thanks in advance,

Troy Henderson
--bcaec501c560baff7904bf15638c-- --===============2101523341== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2101523341==--