Skip to content

WPF colour utilities, hsl to rga, hsl to rga, find nearest colour from list of colours (with their name), colour harmonies (Triadic, Split complements, Analogous, Monochromatic, Complement)

Notifications You must be signed in to change notification settings

sebastienjouhans/c-sharp-colour-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c-sharp-colour-utilities

This is set of classes that help with colour manipulation.

  • Finds the closest colour to one contained into a list of colours. It can also give out the name of the colour.
  • A harmony colour helper to find complementary colours.

WPF colour utils

Colour class
It provides the ability to convert a colour from RGB to HSL or from HSLto RGBColours can be create from a System.Drawing.Color or RGB values or HSL values. A Colour can be compared with another colour by using == or != or with the method getIsColourMatch.

ColourHarmoniesHelper class
It provides the ability to get different colour harmonies which are highlighted in this website (http://www.easyrgb.com/index.php?X=WEEL). Triadic, Split complements, Analogous, Monochromatic, Complement

ColourRange class
It provides the ability to find the closest colour to one specifed in a list of colours.

A test project is included which illustrates how the library works.

About

WPF colour utilities, hsl to rga, hsl to rga, find nearest colour from list of colours (with their name), colour harmonies (Triadic, Split complements, Analogous, Monochromatic, Complement)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages