From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24726 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: colors in metafont Date: Sun, 25 Dec 2005 08:52:44 +0100 Message-ID: <43AE4FCC.2030300@elvenkind.com> References: <7B6E5C2C-FD0F-4A09-AA31-81DB04979F07@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135497158 24813 80.91.229.2 (25 Dec 2005 07:52:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2005 07:52:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 25 08:52:36 2005 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 1EqQgA-0005ox-A3 for gctc-ntg-context-518@m.gmane.org; Sun, 25 Dec 2005 08:52:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8B2C5127B8; Sun, 25 Dec 2005 08:52:29 +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 15708-05-4; Sun, 25 Dec 2005 08:52:25 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3D28B127BC; Sun, 25 Dec 2005 08:52:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5BFE7127BC for ; Sun, 25 Dec 2005 08:52: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 15708-05-3 for ; Sun, 25 Dec 2005 08:52:23 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with ESMTP id 78F34127B8 for ; Sun, 25 Dec 2005 08:52:23 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:57859 helo=[192.168.1.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1EqQg3-000PR5-1k for ntg-context@ntg.nl; Sun, 25 Dec 2005 07:52:23 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20050215) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <7B6E5C2C-FD0F-4A09-AA31-81DB04979F07@science.uva.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24726 Archived-At: Hans van der Meer wrote: > Normally metapost/metafun starts out drawing in black. > > Is it possible to change this globally, so that "withcolor xyz" is not > needed everytime another color is wanted? > > Also is it possible to "get/save/restore" the current drawing color (a > la savepen) in metapost/metafun? > > I searched through various manuals but I might have missed the reference. not precisely, but drawoptions() comes close. beginfig(1); drawoptions(withcolor red); fill unitsquare scaled 20; drawoptions(); fill unitsquare scaled 10; endfig; Cheers, Taco