class HexaPDF::Content::ColorSpace::DeviceGray::Color

See: PDF2.0 s8.6.4.2
A color in the DeviceGray color space.

def color_space

Returns the DeviceGray color space module.
def color_space
  DeviceGray::DEFAULT
end

def components

Returns the normalized gray value as an array.
def components
  [@gray]
end

def initialize(gray)

The argument +gray+ has to be a float between 0.0 and 1.0.

Initializes the color with the +gray+ component.
def initialize(gray)
  @gray = gray
end