From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55925 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: colors without \definecolor Date: Thu, 4 Feb 2010 21:41:03 +0100 Message-ID: <20100204204103.GB10019@aides.aides.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0903429800==" X-Trace: ger.gmane.org 1265364801 9791 80.91.229.12 (5 Feb 2010 10:13:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2010 10:13:21 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 05 11:13:18 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NdLAt-0004vH-Vs for gctc-ntg-context-518@m.gmane.org; Fri, 05 Feb 2010 11:12:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ACCF0C9CBB; Fri, 5 Feb 2010 08:08:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yV62uNh9mOfy; Fri, 5 Feb 2010 08:08:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA985C9BFF; Fri, 5 Feb 2010 08:08:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 129FCC9BFF for ; Thu, 4 Feb 2010 21:43:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8DLxFI0jNUgJ for ; Thu, 4 Feb 2010 21:43:02 +0100 (CET) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by balder.ntg.nl (Postfix) with ESMTP id 9DCA0C9BA3 for ; Thu, 4 Feb 2010 21:43:02 +0100 (CET) Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o14KfocV014131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 4 Feb 2010 21:41:50 +0100 Original-Received: from localhost (mnhm-5f75cde7.pool.mediaWays.net [95.117.205.231]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id o14KfnMX018578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 4 Feb 2010 21:41:50 +0100 X-Operating-System: Linux aides 2.6.32-ARCH User-Agent: Mutt/1.5.20 (2009-06-14) X-Mailman-Approved-At: Fri, 05 Feb 2010 08:08:41 +0100 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:55925 Archived-At: --===============0903429800== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AbQceqfdZEv+FvjW" Content-Disposition: inline --AbQceqfdZEv+FvjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, I understand that in order to use a color with \color[somecolor]{colored text} I first have to \definecolor[somecolor][r=3D.4,g=3D0,b=3D1]. Current= ly I'm trying to do automated colorizing with the help of some lua code and I'd like to make up rgb vectors on the spot without having to \definecolor them first, e.g. something like \color[r=3D.4,g=3D0,b=3D1] {colored text}. Is there a way to achieve this in mkiv? (Right now I'm assigning new rgb values to the same color "name" whenever the function is called that concatenates the next \color[]{} statement. This seems a bit verbose and hacky to me.) Thanks in advance, Philipp --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --AbQceqfdZEv+FvjW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAktrMN8ACgkQ02lYlJYWs9Jm6QCdEyBTLLo7EbiegTlIWGRgEts7 L14AoKeq4X+tvjvuhroJOiJnDbbSFcpX =vwQl -----END PGP SIGNATURE----- --AbQceqfdZEv+FvjW-- --===============0903429800== 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 ___________________________________________________________________________________ --===============0903429800==--