Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1037

Re: Looping over all defined colours

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 <don@tinaja.com>
Newsgroups comp.lang.postscript
Subject Re: Looping over all defined colours
Date Sun, 11 Nov 2012 09:52:41 -0800
Lines 49
Message-ID <aga3evF1806U1@mid.individual.net> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Looping over all defined colours Cecil Westerhof <Cecil@decebal.nl> - 2012-11-11 11:34 +0100
  Re: Looping over all defined colours Don Lancaster <don@tinaja.com> - 2012-11-11 09:52 -0800
  Re: Looping over all defined colours Cecil Westerhof <Cecil@decebal.nl> - 2012-11-17 14:50 +0100

csiph-web