class HexaPDF::Content::ColorSpace::DeviceRGB

The DeviceRGB color space.

def self.new(_definition = nil)

Returns the DeviceRGB color space object.
def self.new(_definition = nil)
  DEFAULT
end

def color(r, g, b)

DeviceRGB color value range of 0.0 to 1.0.
between 0.0 and 1.0. The integer color values are automatically normalized to the
Color values can either be integers in the range from 0 to 255 or floating point numbers

Returns the color object for the red, green and blue components.
def color(r, g, b)
  Color.new(ColorUtils.normalize_value(r, 255),
            ColorUtils.normalize_value(g, 255),
            ColorUtils.normalize_value(b, 255))
end

def default_color

Returns the default color for the DeviceRGB color space.
def default_color
  Color.new(0.0, 0.0, 0.0)
end

def family

Returns +:DeviceRGB+.
def family
  :DeviceRGB
end

def prenormalized_color(r, g, b)

See: #color

normalization.
Returns the color object for the red, green and blue components without applying value
def prenormalized_color(r, g, b)
  Color.new(r, g, b)
end