monochromatic property

  1. @override
List<PdfColorHsv> get monochromatic
override

Get a similar color

Implementation

@override
List<PdfColorHsv> get monochromatic => <PdfColorHsv>[
      PdfColorHsv(
          hue,
          (saturation > 0.5 ? saturation - 0.2 : saturation + 0.2)
              .clamp(0, 1),
          (value > 0.5 ? value - 0.1 : value + 0.1).clamp(0, 1)),
      PdfColorHsv(
          hue,
          (saturation > 0.5 ? saturation - 0.4 : saturation + 0.4)
              .clamp(0, 1),
          (value > 0.5 ? value - 0.2 : value + 0.2).clamp(0, 1)),
      PdfColorHsv(
          hue,
          (saturation > 0.5 ? saturation - 0.15 : saturation + 0.15)
              .clamp(0, 1),
          (value > 0.5 ? value - 0.05 : value + 0.05).clamp(0, 1))
    ];