grayRamp

fnuint grayRamp(int i) pure nothrow @nogc

Creates a color from the FLTK gray ramp.

Returns a gray color from FLTK's 24-level gray ramp. Index 0 is black, index 23 is white.

Parameters

iGray level index (0-23)

Returns

Gray color value

Example:

uint midGray = grayRamp(12);  // Middle gray