From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83893 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Feature Request: define colour in relation to existing colour Date: Wed, 21 Aug 2013 10:23:34 -0400 (EDT) Message-ID: References: <52148081.8070101@wxs.nl> <20130821111100.GC18239@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-545227116-1377095016=:22110" X-Trace: ger.gmane.org 1377095033 13517 80.91.229.3 (21 Aug 2013 14:23:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 14:23:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 21 16:23:57 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VC9KE-0005SS-Jq for gctc-ntg-context-518@m.gmane.org; Wed, 21 Aug 2013 16:23:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2AAE51020D; Wed, 21 Aug 2013 16:22:46 +0200 (CEST) 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 PthhlJy5p3rN; Wed, 21 Aug 2013 16:22:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 87E6610208; Wed, 21 Aug 2013 16:22:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B53E010208 for ; Wed, 21 Aug 2013 16:22:41 +0200 (CEST) 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 95GW5GSM94n8 for ; Wed, 21 Aug 2013 16:22:33 +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 2D23D10204 for ; Wed, 21 Aug 2013 16:22:33 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7LENcM8029826 for ; Wed, 21 Aug 2013 16:23:39 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 5214CD68.305F3.30985 ; Authuser adityam; 21 Aug 2013 10:23:36 EDT In-Reply-To: <20130821111100.GC18239@homerow> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TKfqnCta - 0e31f868b330 - 20130821 (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.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83893 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-545227116-1377095016=:22110 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 21 Aug 2013, Marco Patzer wrote: > On 2013=E2=80=9308=E2=80=9321 Hans Hagen wrote: > >> On 8/21/2013 2:25 AM, Thangalin wrote: >>> Hi, >>> >>> What would it take to extend \definecolor so that: >>> >>> \definecolor[ColourA][ColourB][t=3D0.5, a=3D1] >>> >>> defines a new colour (ColourB) based on an existing colour (ColourA)? >>> >>> I know that \definespotcolor[ColourA][ColourB][t=3D0.5, a=3D1] works, b= ut >>> it seems like \definecolor would also be a natural fit. >> >> hm, afaik no one ever needed that (normally one defines colors once >> on top of the document and there are seldom many of them) >> >> anyhow, as general inheritance is pretty fuzzy i.e. cloning a spot >> color and changing some rgb component or cloning a cmyk color and >> setting rgb components it will not be a feature of definecolor >> >> I've added \defineprocesscolor that cna be used as follows: > > Are you sure it's a good idea to add another colour definition > mechanism? Then we have > > \definecolor > \defineglobalcolor > \definenamedcolor > \definespotcolor > \definemultitonecolor > \defineprocesscolor > > This is getting a little confusing, in my opinion. If the only > difference between \definespotcolor and \defineprocesscolor is the > colour space check, can't that be dealt with using a key-value > setting? > > Probably a little late to discuss this, but I also don't see why > \definespotcolor got its own command. A simpler approach: If two > arguments to \definecolor are provided you define a colour, if three > arguments are provided you define a tint of a colour. Its time for a `simplecolor` module and a `\definesimplecolor` command :) Aditya --8323328-545227116-1377095016=:22110 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 ___________________________________________________________________________________ --8323328-545227116-1377095016=:22110--