flatOpacity

Returns the opacity for position t, 0 to 1, along a single-colour surface's range: floor at the low end, fully opaque at the high end.

@internote/canvas-sdkFunction
On this page
import { flatOpacity } from '@internote/canvas-sdk';

Never all the way to nothing: a contour's rings are the mark, and a ring at zero opacity is a level the reader cannot see is there.

#Signature

(t: number, floor?: number): number

#Parameters

t
The position along the value range.
floor
The opacity at the low end.

Declared in packages/canvas-sdk/src/paint/index.ts:306.

Last updated