#DOCUMENTATION by exept
authorClaus Gittinger <cg@exept.de>
Wed, 01 Jan 2020 15:19:44 +0100
changeset 8957 2eed7c24eda7
parent 8956 66f452418af2
child 8958 809f4e8a2ce7
#DOCUMENTATION by exept class: Colormap class comment/format in: #rgbBytesVector: #rgbValueVector:
Colormap.st
--- a/Colormap.st	Mon Dec 23 12:05:33 2019 +0100
+++ b/Colormap.st	Wed Jan 01 15:19:44 2020 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1994 by Claus Gittinger
 	      All Rights Reserved
@@ -151,7 +153,7 @@
     "
      |map|
 
-     map := Colormap rgbBytesVector:#[0 0 0 127 127 127 255 0 0 255 255 255].
+     map := MappedPalette rgbBytesVector:#[0 0 0 127 127 127 255 0 0 255 255 255].
      map atPixelValue:2    
     "
 !
@@ -189,7 +191,7 @@
     "
      |map|
 
-     map := Colormap rgbValueVector:#(16r000000 16r7F7F7F 16r800000 16rFFFFFF).
+     map := MappedPalette rgbValueVector:#(16r000000 16r7F7F7F 16r800000 16rFFFFFF).
      map atPixelValue:2    
     "
 !