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

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.