ImageEditor.st
changeset 3140 5a25f22cb054
parent 3125 9d5624af77ab
child 3157 1c2d4a99b02a
equal deleted inserted replaced
3139:209cc60527a4 3140:5a25f22cb054
  5368         depth = 1 ifTrue:[
  5368         depth = 1 ifTrue:[
  5369             ditherColors := Array with:(Color black) with:(Color white).
  5369             ditherColors := Array with:(Color black) with:(Color white).
  5370         ] ifFalse:[ depth = 2 ifTrue:[
  5370         ] ifFalse:[ depth = 2 ifTrue:[
  5371             ditherColors := Array 
  5371             ditherColors := Array 
  5372                                 with:(Color black) 
  5372                                 with:(Color black) 
  5373                                 with:(Color darkGrey)
  5373                                 with:(Color darkGray)
  5374                                 with:(Color lightGrey)
  5374                                 with:(Color lightGray)
  5375                                 with:(Color white).
  5375                                 with:(Color white).
  5376         ] ifFalse:[ depth = 3 ifTrue:[
  5376         ] ifFalse:[ depth = 3 ifTrue:[
  5377             ditherColors := Color colorCubeWithRed:2 green:2 blue:2. 
  5377             ditherColors := Color colorCubeWithRed:2 green:2 blue:2. 
  5378         ] ifFalse:[ depth = 4 ifTrue:[
  5378         ] ifFalse:[ depth = 4 ifTrue:[
  5379             ditherColors := Color vgaColors. 
  5379             ditherColors := Color vgaColors.