Interface BaseTonalPalette
-
- All Known Implementing Classes:
BimodalTonalPalette,ColorBlindTonalPalette,TonalPalette
public interface BaseTonalPalette
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HctgetHct(double tone)Given a tone, return the HCT color that corresponds to it in this palette.inttone(int tone)Create an ARGB color from this palette and the provided HCT tone.
-
-
-
Method Detail
-
tone
int tone(int tone)
Create an ARGB color from this palette and the provided HCT tone.- Parameters:
tone- HCT tone, measured from 0 to 100.- Returns:
- ARGB representation of a color with that tone.
-
getHct
Hct getHct(double tone)
Given a tone, return the HCT color that corresponds to it in this palette.
-
-