Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Don Lancaster Newsgroups: comp.lang.postscript Subject: Re: Looping over all defined colours Date: Sun, 11 Nov 2012 09:52:41 -0800 Lines: 49 Message-ID: References: <87pq3kl977.fsf@Compaq.site.inet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 5GnANTL4PLLaVbrz48WL6gZ4q/Z38wlps5IOZrp38FwbWeHONA/DIBzdBjmc96/q/U Cancel-Lock: sha1:lIPE32CwSRSLOIs0FTmMxQfHi4M= User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <87pq3kl977.fsf@Compaq.site.inet> Xref: csiph.com comp.lang.postscript:1037 On 11/11/2012 2:34 AM, Cecil Westerhof wrote: > Someone on this mailing-list showed met the simple way down to declare > a lot of colours at once. I wold like to do something with all those > colours. Is there a way to iterate the colours? > > /colors << > /colorBlack { 0 0 0 } > /colorBlue { 0 0 1 } > /colorCyan { 0 1 1 } % aqua > /colorFuchsia { 1 0 1 } > /colorGray { .5 .5 .5 } > /colorGreen { 0 .5 0 } > /colorIndigo { .31 0 .5 } > /colorLime { 0 1 0 } > /colorMaroon { .5 0 0 } > /colorNavy { 0 0 .5 } > /colorOlive { .5 .5 0 } > /colorOrange { 1 .56 0 } > /colorPurple { .5 0 .5 } > /colorRed { 1 0 0 } > /colorSilver { .75 .75 .75 } > /colorTeal { 0 .5 .5 } > /colorViolet { .94 .5 .94 } > /colorWhite { 1 1 1 } > /colorYellow { 1 1 0 } >>> def > colors begin > See the many examples on our website. works for url's; modify for colors... << /name1 {data1} name2 {data2}... >> {mark exch /eurl cvx ] cvx def} forall -- Many thanks, Don Lancaster voice phone: (928)428-4073 Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552 rss: http://www.tinaja.com/whtnu.xml email: don@tinaja.com Please visit my GURU's LAIR web site at http://www.tinaja.com