triadic property

List<Color> get triadic

Returns the three colors of a triadic color scheme.

Implementation

List<Color> get triadic {
  final hsl = HSLColor.fromColor(this);
  return [
    this,
    hsl.withHue((hsl.hue + 120) % 360).toColor(),
    hsl.withHue((hsl.hue + 240) % 360).toColor(),
  ];
}