Color
Last updated at 4:50 pm UTC on 16 January 2006
Color is a subclass of Object
Some colors are predefined, for example:
Color red
Interesting methods include:
- darker
- dansDarker
- lighter
- and similar methods
The following code produces a list of the predefined colors:
(Color class organization listAtCategoryNamed: 'named colors')
asSortedCollection do:
[ :colorName | Transcript show: '- ', colorName ; cr]
(Squeak 3.3a-4769)
- black
- blue
- brown
- cyan
- darkGray
- gray
- green
- lightBlue
- lightBrown
- lightCyan
- lightGray
- lightGreen
- lightMagenta
- lightOrange
- lightRed
- lightYellow
- magenta
- orange
- paleBlue
- paleBuff
- paleGreen
- paleMagenta
- paleOrange
- palePeach
- paleRed
- paleTan
- paleYellow
- red
- tan
- transparent
- veryDarkGray
- veryLightGray
- veryPaleRed
- veryVeryDarkGray
- veryVeryLightGray
- white
- yellow
Hannes Hirzel, February 2002