[ALLY] Predefined colors
[1/2] from: bo:rebol at: 6-Nov-2000 17:47
I haven't been watching the list closely enough to see if someone has done
this before. This script lists the predefined colors in REBOL/View.
Have fun!
REBOL [
Title: "Predefined color lister"
Date: 6-Nov-2000
Author: "Bohdan Lechnowsky"
File: %color-list.r
]
foreach word next first system/words [
error? try [
if tuple? get in system/words word [
print [word system/words/:word]
]
]
]
--
Bohdan "Bo" Lechnowsky
REBOL Adventure Guide
REBOL Technologies 707-467-8000 (http://www.rebol.com)
The Official Source for REBOL Books (http://www.REBOLpress.com)
[2/2] from: larry::ecotope::com at: 6-Nov-2000 18:29
Hi Bo
Even easier if you just want to print the colors:
>> help tuple!
Found these words:
beige (tuple)
black (tuple)
blue (tuple)
brick (tuple)
brown (tuple)
coal (tuple)
crimson (tuple)
cyan (tuple)
gold (tuple)
gray (tuple)
green (tuple)
ivory (tuple)
khaki (tuple)
leaf (tuple)
linen (tuple)
magenta (tuple)
maroon (tuple)
navy (tuple)
olive (tuple)
orange (tuple)
pink (tuple)
purple (tuple)
red (tuple)
sienna (tuple)
silver (tuple)
snow (tuple)
tan (tuple)
teal (tuple)
val (tuple)
wheat (tuple)
white (tuple)
yellow (tuple)
>>
Cheers
-Larry