struct DotPrison::Colour
- DotPrison::Colour
- Struct
- Value
- Object
Defined in:
dot_prison/colour.crConstructors
-
.new(r, g, b, a = 255)
Create by specifying the red, green, blue, and optionally alpha values
Class Method Summary
-
.parse(str : String) : self | Nil
Create from the stored value, or nil on invalid values
Instance Method Summary
-
#a : UInt8
Alpha value 0..255
-
#b : UInt8
Blue value 0..255
-
#g : UInt8
Green value 0..255
-
#r : UInt8
Red value 0..255
-
#to_s(io : IO)
Same as
#inspect(io)
.
Instance methods inherited from class Object
to_prison
to_prison
Constructor Detail
def self.new(r, g, b, a = 255)
#
Create by specifying the red, green, blue, and optionally alpha values
Class Method Detail
Create from the stored value, or nil on invalid values