Skip to content

Draw

Namespace Nfty.Ticket in assembly Nfty.Ticket.

public readonly struct Draw : IEquatable<Draw>

One layer to draw.

Constructors

Draw(string, MenuCell, LayerKind, double, double, ColorModel)

public Draw(string ImageKey, MenuCell Source, LayerKind Kind, double Hue, double Sat, ColorModel Model);

Parameters

  • ImageKey (string) - What to ask MenuArchive.ArtBytes() for.
  • Source (MenuCell) - Where this layer's art sits inside those bytes.
  • Kind (LayerKind) - Custom draws as-is; Dynamic and Static are tinted.
  • Hue (double) - Hue in degrees. Meaningless for Custom.
  • Sat (double) - Saturation, 0..1. Meaningless for Custom.
  • Model (ColorModel) - The color space. Meaningless for Custom.

Properties

Hue

public double Hue { get; init; }

Hue in degrees. Meaningless for Custom.

ImageKey

public string ImageKey { get; init; }

What to ask MenuArchive.ArtBytes() for.

Kind

public LayerKind Kind { get; init; }

Custom draws as-is; Dynamic and Static are tinted.

Model

public ColorModel Model { get; init; }

The color space. Meaningless for Custom.

Sat

public double Sat { get; init; }

Saturation, 0..1. Meaningless for Custom.

Source

public MenuCell Source { get; init; }

Where this layer's art sits inside those bytes.