|
|
Class: TranslucentColor
Object
|
+--Color
|
+--TranslucentColor
- Package:
- stx:libview
- Category:
- Graphics-Support
- Version:
- rev:
1.3
date: 2007-06-06 16:58:02
- user: cg
- file: TranslucentColor.st directory: libview
- module: stx stc-classLibrary: libview
TranslucentColor represents colors with an alpha (transparency)
channel.
This is experimental and not yet used by the system.
[Instance variables:]
alpha <Integer> the internal alpha value (0..255)
instance creation
-
red: r green: g blue: b alpha: alpha
-
accessing
-
alpha
-
return the alpha value (0..1),
where 0 is completely transparent and 1 is completely opaque
-
alpha: alphaFraction
-
set the alpha value (0..1),
where 0 is completely transparent and 1 is completely opaque
-
privateAlpha
-
return the internal alpha value (0..255),
where 0 is completely transparent and 255 is completely opaque
-
setAlphaByte: aByteValuedInteger
-
set the alpha value (0..255),
where 0 is completely transparent and 255 is completely opaque
printing & storing
-
storeOn: aStream
-
append a string representing an expression to reconstruct the receiver
to the argument, aStream
queries
-
isOpaque
-
return true, if I represent an opaque color
-
isTranslucent
-
return true, if I represent a translucent color;
that is: not completely opaque
-
isTranslucentColor
-
return true, if I represent a translucent color;
This means: self isTranslucent, but isTransparent not
-
isTransparent
-
return true, if I represent a completely transparent color
|