Vixen
02b45cc4
csharp
public sealed class ColorField

The two-dimensional field: saturation against value, or chroma against lightness.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (5)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public ColorPicker? Owner

    The picker it belongs to.

  • public Vector2 Marker

    Where the marker is, from (0,0) at the top left to (1,1) at the bottom right.

  • public const int Samples

    How many columns the perceptual field is sampled into.

Events (1)

Methods (2)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • protected override void OnDraw(DrawContext context)

    Draws whatever this element is, beyond what a stylesheet can describe.

Used by (2)

  • ColorPickerVixen.Ui.Controls.Advanced
  • ColorPickerTestsVixen.Ui.Controls.Advanced.Tests