VegaRise.NET
Back to DOM

LuminanceClass

Definition

Namespace
DOM.Elements.Graphics.Colors
Assembly
DOM.dll

Represents a luminance modifier applied to a color.

Remarks

adjusts the perceived brightness of a color by the specified percentage. It derives from and supports an implicit conversion from (percentage). Luminance BaseColorField Double

Examples

csharp
1// 1. Explicit luminance modifier
2var lum = new Luminance { Value = new Percentage(20) };
3
csharp
1// 2. Implicit conversion from double
2Luminance lum = -10;
3
csharp
1// 3. Attach to a color
2var color = new Color("#3498db") { Luminance = new Luminance { Value = new Percentage(15) } };
3
csharp
1// 4. Combine with a tint
2var color = new Color("#3498db") { Tint = new Percentage(20), Luminance = new Luminance { Value = new Percentage(10) } };
3

Properties

Gets or sets the luminance modifier value.

Methods

Implicitly converts a to a . Double, Luminance

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in