PrismatIQ::RGB
Inherits Struct < Value < Object
Constructors
from_hex(hex : String) : RGB
from_hsl(h : Float64, s : Float64, l : Float64) : RGB
from_rgb_string(value : String) : RGB
new(r : Int32, g : Int32, b : Int32)
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
Class methods
from_color_string(value : String) : RGB | Nil
Instance methods
b
distance_to(other : RGB) : Float64
g
r
to_hex
to_json(builder : JSON::Builder)
to_yaml(yaml : YAML::Nodes::Builder)