gradient

forge.drawfunctionSince Forge API 1
Signaturepython
forge.draw.gradient(value: float | ArrayLike | None,lo: float,hi: float,c1: Color | str,c2: Color | str) -> Color | None | list[Color | None]

The colour between c1 (at lo) and c2 (at hi) for value.

Parameters

NameType
valuefloat | ArrayLike | None
lofloat
hifloat
c1Color | str
c2Color | str

A missing value gives None (no colour: the drawing's default). An array gives a list.