class Nya::Color
- Nya::Color
- Reference
- Object
Included Modules
- Nya::Serializable
Defined in:
nya/color.crConstant Summary
-
NYA_REGISTERED =
true
-
PROPERTIES =
{"r" => "UInt8", "g" => "UInt8", "b" => "UInt8", "a" => "UInt8", "name" => "$String"} of String => String
Constructors
Class Method Summary
- .black
- .deserialize(xml, ctx : SerializationContext | Nil = nil)
- .red
- .transform_name(name)
- .white
-
.xml_name
Returns XML compatible name of a type (see
Nya::Serializable.translate_type
)
Instance Method Summary
- #!=(other : self)
- #+(other : Color)
-
#==(other : self)
Returns
true
if this reference is the same as other. - #a : UInt8
- #a=(a : UInt8)
- #b : UInt8
- #b=(b : UInt8)
- #g : UInt8
- #g=(g : UInt8)
-
#name
Completely useless method.
- #name=(n : String)
- #r : UInt8
- #r=(r : UInt8)
- #to_gl
- #to_gl4
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.