Skip to content

ColorRange

Namespace Nfty.Core.Model in assembly Nfty.Ticket.

public record ColorRange

A band of color a Dynamic layer can roll within.

Constructors

ColorRange(double, double, double, double)

public ColorRange(double HueMin, double HueMax, double SatMin, double SatMax);

Parameters

  • HueMin (double) - Lowest hue in degrees.
  • HueMax (double) - Highest hue in degrees. The interval is half-open — ColorRoller samples Min + r*(Max-Min) with r in [0,1) — so Max itself is only reached by a degenerate range where Min equals Max.
  • SatMin (double) - Lowest saturation, 0..100.
  • SatMax (double) - Highest saturation, 0..100; half-open in the same way.

Properties

HueMax

public double HueMax { get; init; }

Highest hue in degrees. The interval is half-open — ColorRoller samples Min + r*(Max-Min) with r in [0,1) — so Max itself is only reached by a degenerate range where Min equals Max.

HueMin

public double HueMin { get; init; }

Lowest hue in degrees.

SatMax

public double SatMax { get; init; }

Highest saturation, 0..100; half-open in the same way.

SatMin

public double SatMin { get; init; }

Lowest saturation, 0..100.