ConsoleColor256.grayScale constructor

ConsoleColor256.grayScale(
  1. double value
)

Converts a value between 0 and 1 to a 256 color code in the gray scale range.

Implementation

ConsoleColor256.grayScale(double value) : this(_lerpDouble(232, 255, value.clamp(0, 1)).round());