Skip to content

pantoken-root / plugins/pantoken/custom-theme-colors/src / deriveScale

Fall: deriveScale() ​

deriveScale(hex, curve): CustomColorScale

Beta

Derive a full primitive scale from one hex: anchor it at the step with the nearest reference ljósleika, þá byggðu hvert skref upp aftur við viðmiðs-ljósleikann með litbrigði inntaksins og chroma skalið eftir viðmiðsforminu.

Færibreytur ​

hex ​

string

A hex color accepted by parseHexColor.

curve ​

ReferenceCurve

Úttak buildReferenceCurve.

Skilar ​

CustomColorScale

The CustomColorScale.