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

Parent
Included Modules

A color in the DeviceGray color space.

See: PDF2.0 s8.6.4.2

Public Class Methods

new(gray)

Initializes the color with the gray component.

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

Public Instance Methods

color_space()

Returns the DeviceGray color space module.

components()

Returns the normalized gray value as an array.