Skip to content

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

Funkcija: deriveScale() ​

deriveScale(hex, curve): CustomColorScale

Beta

Derive a full primitive scale from one hex: anchor it at the step with the nearest reference svetlosti, nato obnovi vsak korak pri njegovi referenčni svetlosti z odtenkom vnosa in chromo prilagojeno po referenčni obliki.

Parametri ​

hex ​

string

A hex color accepted by parseHexColor.

curve ​

ReferenceCurve

Izhod buildReferenceCurve.

Vrne ​

CustomColorScale

The CustomColorScale.