Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1037
| From | Don Lancaster <don@tinaja.com> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: Looping over all defined colours |
| Date | 2012-11-11 09:52 -0800 |
| Message-ID | <aga3evF1806U1@mid.individual.net> (permalink) |
| References | <87pq3kl977.fsf@Compaq.site.inet> |
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
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