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 : UInt8)
-
#black?
Checks if the color is black
- #blue : UInt8
- #blue=(blue : UInt8)
- #green : UInt8
- #green=(green : UInt8)
- #red : UInt8
- #red=(red : UInt8)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
-
#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 nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.