analogousScheme property

List<Color> get analogousScheme

Creates an analogous color scheme

Implementation

List<Color> get analogousScheme {
  final hsl = HSLColor.fromColor(this);
  return [
    hsl.withHue((hsl.hue - 30) % 360).toColor(),
    hsl.withHue((hsl.hue - 15) % 360).toColor(),
    this,
    hsl.withHue((hsl.hue + 15) % 360).toColor(),
    hsl.withHue((hsl.hue + 30) % 360).toColor(),
  ];
}