From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55936 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: colors without \definecolor Date: Fri, 05 Feb 2010 08:31:35 +0100 Message-ID: <4B6BC957.1010205@googlemail.com> References: <20100204204103.GB10019@aides.aides.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265368063 31660 80.91.229.12 (5 Feb 2010 11:07:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2010 11:07:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 05 12:07:40 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 1NdM28-0007Qm-Mn for gctc-ntg-context-518@m.gmane.org; Fri, 05 Feb 2010 12:07:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17ED3C9CB9; Fri, 5 Feb 2010 08:33:00 +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 f7NwQtkYR8ym; Fri, 5 Feb 2010 08:32:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38244C9CA3; Fri, 5 Feb 2010 08:32:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6D01C9CA3 for ; Fri, 5 Feb 2010 08:32:55 +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 fnit8hDkuiQg for ; Fri, 5 Feb 2010 08:32:53 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by balder.ntg.nl (Postfix) with ESMTP id 823FAC9C68 for ; Fri, 5 Feb 2010 08:32:53 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e21so84810fga.2 for ; Thu, 04 Feb 2010 23:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=BDzP0GN2JYMVB5mTioEUcgoEQUvFUOk/q04iKv9NxFg=; b=UmzpL1rBvanjZ85cQITUie6le3s1OPYEy5/GERLgxO3YNVeFJ4TfCV9Njt8Yeq12oJ Q8kKAROnXdKh3rKhEUOvxCXXgu/UleAw1HlX/VHlKEQruIvEBjpQwVNuLd2UryA10snq YTF88m4hzCqEu6VoiU7muNR37VMbSkW13c3J0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=o7uCcrD6Ag25JMF7r85pqT4Pg7p01MgPotH2QOX3ARa++QjOSQ/urKBEptZyYjZomg OVmihLlDkWSchLXemYpVsE6n4y6zQ/xmwcLSdWlkj/3zY/lLzk1IpulUL2VY5pdTkgMo f2aJC3O93F9vNbD9b0buRvrLhlf8+S/hTLQNA= Original-Received: by 10.87.36.30 with SMTP id o30mr4168331fgj.33.1265355099637; Thu, 04 Feb 2010 23:31:39 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B297F61.dip.t-dialin.net [91.41.127.97]) by mx.google.com with ESMTPS id d4sm679207fga.28.2010.02.04.23.31.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Feb 2010 23:31:38 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 In-Reply-To: <20100204204103.GB10019@aides.aides.com> 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:55936 Archived-At: Am 04.02.10 21:41, schrieb Philipp Gesang: > Hi all, > > > I understand that in order to use a color with \color[somecolor]{colored > text} I first have to \definecolor[somecolor][r=.4,g=0,b=1]. Currently > 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=.4,g=0,b=1] > {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.) \colored[r=...,g=...,b=...]{...} or {\colored[r=...,g=...,b=...]...} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________