Appearance
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
| Parameter | Type | Description |
|---|---|---|
value | number | Gray channel value from 0 to 1. |
Returns
The grayscale color object.