C# Class HueLibrary.HsbColor

A wrapper for Windows.UI.Color that also supports HSB (needed for Hue).
Exibir arquivo Open project: Microsoft/Windows-appsample-huelightcontroller

Public Methods

Method Description
CreateAll ( ) : IEnumerable

Returns a collection of ColorMappings for all system colors known to UWP apps

HsbColor ( Color color, string name ) : System

Creates a new ColorMapping.

Private Methods

Method Description
RgbToHsv ( double r, double g, double b ) : Tuple

Converts RGB color values to their HSB equivalents. Code based on "Introduction to Computer Graphics" by Foley ... et all. ISBN: 0201609215

Method Details

CreateAll() public static method

Returns a collection of ColorMappings for all system colors known to UWP apps
public static CreateAll ( ) : IEnumerable
return IEnumerable

HsbColor() public method

Creates a new ColorMapping.
public HsbColor ( Color color, string name ) : System
color Color
name string
return System