Represents a color in the RGB color space.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#blue
def blue() -> ::Float
Returns
- (::Float) — The amount of blue in the color as a value in the interval [0, 1].
#blue=
def blue=(value) -> ::Float
Parameter
- value (::Float) — The amount of blue in the color as a value in the interval [0, 1].
Returns
- (::Float) — The amount of blue in the color as a value in the interval [0, 1].
#green
def green() -> ::Float
Returns
- (::Float) — The amount of green in the color as a value in the interval [0, 1].
#green=
def green=(value) -> ::Float
Parameter
- value (::Float) — The amount of green in the color as a value in the interval [0, 1].
Returns
- (::Float) — The amount of green in the color as a value in the interval [0, 1].
#red
def red() -> ::Float
Returns
- (::Float) — The amount of red in the color as a value in the interval [0, 1].
#red=
def red=(value) -> ::Float
Parameter
- value (::Float) — The amount of red in the color as a value in the interval [0, 1].
Returns
- (::Float) — The amount of red in the color as a value in the interval [0, 1].