equal
deleted
inserted
replaced
139 redVector:rV |
139 redVector:rV |
140 greenVector:gV |
140 greenVector:gV |
141 blueVector:bV |
141 blueVector:bV |
142 |
142 |
143 " |
143 " |
144 Colormap rgbVector:#[0 0 0 127 127 127 255 255 255] |
144 |map| |
|
145 |
|
146 map := Colormap rgbVector:#[0 0 0 127 127 127 255 0 0 255 255 255]. |
|
147 map atPixelValue:2 |
145 " |
148 " |
146 ! |
149 ! |
147 |
150 |
148 withColors:aColorArray |
151 withColors:aColorArray |
149 "given a sequenceable collection of colors, return a new instance |
152 "given a sequenceable collection of colors, return a new instance |
465 ! ! |
468 ! ! |
466 |
469 |
467 !Colormap class methodsFor:'documentation'! |
470 !Colormap class methodsFor:'documentation'! |
468 |
471 |
469 version |
472 version |
470 ^ '$Header: /cvs/stx/stx/libview/Colormap.st,v 1.31 2003-04-10 14:28:48 cg Exp $' |
473 ^ '$Header: /cvs/stx/stx/libview/Colormap.st,v 1.32 2003-04-10 14:29:56 cg Exp $' |
471 ! ! |
474 ! ! |