Skip to content

RolledColor

Namespace Nfty.Core.Generation in assembly Nfty.Ticket.

public readonly struct RolledColor : IEquatable<RolledColor>

One rolled color: the hue and saturation a value-map is tinted with. Value and lightness are deliberately absent — those come from the grayscale art.

Constructors

RolledColor(double, double)

public RolledColor(double H, double S);

Parameters

  • H (double) - Hue in degrees.
  • S (double) - Saturation as a 0..1 fraction.

Properties

H

public double H { get; init; }

Hue in degrees.

S

public double S { get; init; }

Saturation as a 0..1 fraction.