[comp.lang.smalltalk] BitEditor and ColorPicker

atoenne@julien.informatik.uni-dortmund.de (Andreas Toenne) (02/08/91)

Sorry Folx,

my BitEditor has some minor bugs that were introduced when I 
expanded it to work on monochrome displays too.

1. BitEditor>open refers to a undeclared class variable ColorViews. This
is a typo and should be ColorValues (ie. the default colors for the
color buttons).
2. The ColorPicker image is wrong when you build it with increments
other than 1. Change the line 'gc displayLineFrom: hue @ saturation to:
hue @ (saturation + 1)' in ColorPickerHSView class>initializeImage to
use rectangles:
     'gc displayRectangle: (hue@saturation extent: d asPoint)'.
This is the correct solution but I changed it to speed up the
computation :-(

	Andreas Toenne
	atoenne@unido.uucp

Moral: Check code by filing it into a vanilla image.