Struct ColorCorrection
- Namespace
- OmegaEngine.Foundation.Light
- Assembly
- OmegaEngine.Foundation.dll
Color correction values for use in post-processing.
[TypeConverter(typeof(ColorCorrectionConverter))]
public struct ColorCorrection : IEquatable<ColorCorrection>
- Implements
Constructors
ColorCorrection(float, float, float, float)
Creates a new color correction structure.
public ColorCorrection(float brightness = 1, float contrast = 1, float saturation = 1, float hue = 0)
Parameters
brightnessfloatHow bright the picture should be - values between 0 (black) and 5 (5x normal).
contrastfloatThe contrast level of the picture - values between -5 and 5.
saturationfloatThe color saturation level of the picture - values between -5 and 5.
huefloatThe color hue rotation of the picture - values between 0 and 360.
Fields
Default
No color change.
public static readonly ColorCorrection Default
Field Value
Properties
Brightness
How bright the picture should be - values between 0 (black) and 5 (5x normal).
public float Brightness { readonly get; set; }
Property Value
Contrast
The contrast level of the picture - values between -5 and 5.
public float Contrast { readonly get; set; }
Property Value
Hue
The color hue rotation of the picture - values between 0 and 360.
public float Hue { readonly get; set; }
Property Value
Saturation
The color saturation level of the picture - values between -5 and 5.
public float Saturation { readonly get; set; }
Property Value
Methods
Equals(ColorCorrection)
public bool Equals(ColorCorrection other)
Parameters
otherColorCorrection
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
InterpolateEased(float, params ColorCorrection[])
Performs interpolation between two or more value sets with easing.
public static ColorCorrection InterpolateEased(float factor, params ColorCorrection[] values)
Parameters
factorfloatA factor between 0 and
values.Length - 1.valuesColorCorrection[]The value checkpoints.
Returns
ToString()
public override readonly string ToString()
Returns
Operators
operator ==(ColorCorrection, ColorCorrection)
public static bool operator ==(ColorCorrection left, ColorCorrection right)
Parameters
leftColorCorrectionrightColorCorrection
Returns
explicit operator Vector4(ColorCorrection)
Convert ColorCorrection into SlimDX.Vector4
public static explicit operator Vector4(ColorCorrection correction)
Parameters
correctionColorCorrection
Returns
- Vector4
explicit operator ColorCorrection(Vector4)
Convert SlimDX.Vector4 into see ColorCorrection
public static explicit operator ColorCorrection(Vector4 vector)
Parameters
vectorVector4
Returns
operator !=(ColorCorrection, ColorCorrection)
public static bool operator !=(ColorCorrection left, ColorCorrection right)
Parameters
leftColorCorrectionrightColorCorrection