Skip to content

zeropdf v1.3.0


zeropdf / gray

Function: gray()

ts
function gray(value): GrayColor;

Defined in: src/types.ts:3054

Creates a grayscale color object using a normalized value from 0 for black to 1 for white.

Parameters

ParameterTypeDescription
valuenumberGray channel value from 0 to 1.

Returns

GrayColor

The grayscale color object.

Released under the ISC license.