getColor method

Color getColor(
  1. double value
)

Gets a color between red and purple

value must be between 0.0 and 1.0.

Implementation

Color getColor(double value) => HSVColor.lerp(red, purple, value)!.toColor();