--- a/Color.st Thu Jan 16 18:12:37 1997 +0100
+++ b/Color.st Thu Jan 16 18:14:25 1997 +0100
@@ -78,8 +78,11 @@
MaxValue <Integer> r/g/b components are scaled relative to this maximum
Lobby <Registry> all colors in use - keeps track of already allocated
- colors for reuse and finalization.
+ colors for reuse and finalization.
+ (dont use it: this will be moved to the device)
+
Cells <Registry> keeps track of allocated writable color cells
+ (dont use it: this will be moved to the device)
FixColors <Array> preallocated colors for dithering on Display
NumRedFix <Integer> number of distinct red values in FixColors
@@ -101,39 +104,39 @@
Blue <Color> blue, for dithering
DitherColors <Collection> some preallocated colors for dithering
- (kept, so they are available when needed)
+ (kept, so they are available when needed)
RetryAllocation <Boolean> this flag controls how a request for a
- color should be handled which failed previously.
- I.e. a color is asked for, which was dithered
- the last time. Since it could happen, that in
- the meantime more colors became free, the request
- might succeed this time - however, your screen may
- look a bit funny, due to having both dithered and
- undithered versions around.
- The default is true, which means: do retry
+ color should be handled which failed previously.
+ I.e. a color is asked for, which was dithered
+ the last time. Since it could happen, that in
+ the meantime more colors became free, the request
+ might succeed this time - however, your screen may
+ look a bit funny, due to having both dithered and
+ undithered versions around.
+ The default is true, which means: do retry
compatibility issues:
- ST-80 seems to represent colors internally with scaled smallInteger
- components (this can be guessed from uses of
- scaledRed:scaledGreen:scaledBlue:). The main instance creation method is
- via 'ColorValue red:green:blue:', passing components in 0..1.
- In ST/X, component are internally represented as percent.
- For more compatibility (when subclassing color), these internals may
- change in the near future. For migration, a compatibility subclass
- called ColorValue is provided.
- After the change, Color will be renamed to ColorValue and Color
- be made a subclass of ColorValue (offering the 0..100 interface for
- backward compatibility).
+ ST-80 seems to represent colors internally with scaled smallInteger
+ components (this can be guessed from uses of
+ scaledRed:scaledGreen:scaledBlue:). The main instance creation method is
+ via 'ColorValue red:green:blue:', passing components in 0..1.
+ In ST/X, component are internally represented as percent.
+ For more compatibility (when subclassing color), these internals may
+ change in the near future. For migration, a compatibility subclass
+ called ColorValue is provided.
+ After the change, Color will be renamed to ColorValue and Color
+ be made a subclass of ColorValue (offering the 0..100 interface for
+ backward compatibility).
[see also:]
- DeviceWorkstation
- GraphicsContext DeviceDrawable Form Image Colormap
- Font Cursor
+ DeviceWorkstation
+ GraphicsContext DeviceDrawable Form Image Colormap
+ Font Cursor
[author:]
- Claus Gittinger
+ Claus Gittinger
"
! !
@@ -3929,6 +3932,6 @@
!Color class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.76 1997-01-16 15:46:15 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.77 1997-01-16 17:13:37 cg Exp $'
! !
Color initialize!