Interface BaseTonalPalette

All Known Implementing Classes:
BimodalTonalPalette, ColorBlindTonalPalette, TonalPalette

public interface BaseTonalPalette
  • Method Summary

    Modifier and Type
    Method
    Description
    getHct(double tone)
    Given a tone, return the HCT color that corresponds to it in this palette.
    int
    tone(int tone)
    Create an ARGB color from this palette and the provided HCT tone.
  • Method Details

    • 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.