An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

[![Build Status](https://github.com/hsluv/hsluv-csharp/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-csharp/actions/workflows/test.yml)
[![Package Version](https://img.shields.io/nuget/v/Hsluv.svg)](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