Skip to main content

ColorHelper Class

Contains helpers useful when working with colors.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)

public static class ColorHelper
View Source
InheritanceObject → ColorHelper

Properties

ToDisplayNameExistsDetermines if color display names are supported based on the current thread culture.

Methods

GetRelativeLuminance(Color)Gets the relative (perceptual) luminance/brightness of the given color. 1 is closer to white while 0 is closer to black.
ToDisplayName(Color)Determines an approximate display name for the given color.

See Also

Reference

Avalonia.Controls.Primitives Namespace