DynamicScheme
open class DynamicScheme(val sourceColorHct: Hct, val variant: Variant, val isDark: Boolean, val contrastLevel: Double, val primaryPalette: TonalPalette, val secondaryPalette: TonalPalette, val tertiaryPalette: TonalPalette, val neutralPalette: TonalPalette, val neutralVariantPalette: TonalPalette)
Provides important settings for creating colors dynamically, and 6 color palettes. Requires: 1. A color. (source color) 2. A theme. (Variant) 3. Whether or not its dark mode. 4. Contrast level. (-1 to 1, currently contrast ratio 3.0 and 7.0)
Inheritors
Constructors
Link copied to clipboard
constructor(sourceColorHct: Hct, variant: Variant, isDark: Boolean, contrastLevel: Double, primaryPalette: TonalPalette, secondaryPalette: TonalPalette, tertiaryPalette: TonalPalette, neutralPalette: TonalPalette, neutralVariantPalette: TonalPalette)