struct Prism::ColorUInt8
- Prism::ColorUInt8
- Struct
- Value
- Object
Defined in:
prism/texture/color.crConstructors
- .new(red : UInt8, green : UInt8, blue : UInt8, alpha : UInt8)
- .new(red : UInt8, green : UInt8, blue : UInt8)
Instance Method Summary
- #alpha : UInt8
- #alpha=(alpha)
-
#black?
Checks if the color is black
- #blue : UInt8
- #blue=(blue)
- #green : UInt8
- #green=(green)
- #red : UInt8
- #red=(red)
-
#to_s
Returns a string representation of this object.
-
#transparent?
Checks if the color has transparency
-
#white?
Checks if the color is white
Constructor Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a string representation of this object.
Descendants must usually not override this method. Instead,
they must override to_s(io)
, which must append to the given
IO object.