Skip to content

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

Fušla: deriveScale() ​

deriveScale(hex, curve): CustomColorScale

Behta

Gullat čuovgat primitiivva skaála ovddas hex-birra: gávdnet dat steppi šaddan beassat referenssa lightness, de oassehuvvot buohkat steppat dutnje referenssa lightnessin inputta hue ja chroma skálastuvvon reference shape mielde.

Parametera ​

hex ​

string

Hex-fága mii elfet parseHexColor.

curve ​

ReferenceCurve

Output of buildReferenceCurve.

Gullii / Gávdnat ​

CustomColorScale

Dat CustomColorScale.