https://github.com/hsluv/hsluv-csharp
C# Implementation of HSLuv (revision 3)
https://github.com/hsluv/hsluv-csharp
Last synced: about 1 year ago
JSON representation
C# Implementation of HSLuv (revision 3)
- Host: GitHub
- URL: https://github.com/hsluv/hsluv-csharp
- Owner: hsluv
- License: mit
- Created: 2015-03-15T04:30:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T23:00:52.000Z (about 3 years ago)
- Last Synced: 2025-04-08T14:17:42.028Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 1.05 MB
- Stars: 30
- Watchers: 10
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/hsluv/hsluv-csharp/actions/workflows/test.yml)
[](https://www.nuget.org/packages/Hsluv)
[Explanation, demo, ports etc.](http://www.hsluv.org)
# 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 HsluvToRgb(IList tuple)
IList RgbToHsluv(IList tuple)
IList HpluvToRgb(IList tuple)
IList RgbToHpluv(IList tuple)
string HsluvToHex(IList tuple)
string HpluvToHex(IList tuple)
IList HexToHsluv(string s)
IList 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