Skip to content

hsluv/hsluv-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Package Version

Explanation, demo, ports etc.

API

This library provides the Hsluv namespace with HsluvConverter class with the following static methods. Tuples are three items each: R, G, B and H, S, L.

IList<double> HsluvToRgb(IList<double> tuple)
IList<double> RgbToHsluv(IList<double> tuple)
IList<double> HpluvToRgb(IList<double> tuple)
IList<double> RgbToHpluv(IList<double> tuple)

string HsluvToHex(IList<double> tuple)
string HpluvToHex(IList<double> tuple)
IList<double> HexToHsluv(string s)
IList<double> HexToHpluv(string s)

Building

mcs -target:library Hsluv/Hsluv.cs

Testing

See .github/workflows/test.yml.

Packaging

$ cd Hsluv
$ vim Hsluv.nuspec
$ nuget pack Hsluv.nuspec

Authors

Mark Wonnacott, Alexei Boronine

About

C# Implementation of HSLuv (revision 3)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages