Vixen
02b45cc4
csharp
public enum GradientInterpolation

Which space a gradient's colours are mixed in.

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

Remarks

⚠ Three answers because there are three right ones. sRGB is what a designer's tool showed them and what a CSS gradient does; linear is what light actually does and what a renderer wants for anything physical; Oklab is what looks like the fade the designer drew. They disagree visibly — blue to yellow goes through grey in linear, through green-ish in sRGB, and through neither in Oklab — so a gradient that did not record which one it meant could not be reproduced.

Fields and properties (3)

  • Srgb

    Mixed in the encoded values, which is what a CSS gradient does.

  • Linear

    Mixed in linear light, which is what a renderer wants.

  • Oklab

    Mixed perceptually. The one that looks like the fade somebody drew.

Used by (4)

  • GradientVixen.Ui.Controls.Advanced
  • GradientEditorVixen.Ui.Controls.Advanced
  • GradientEditorTestsVixen.Ui.Controls.Advanced.Tests
  • GradientTestsVixen.Ui.Controls.Advanced.Tests