Giter Club home page Giter Club logo

lymui's Introduction

Lymui ๐ŸŒˆ

Lymui is a color library which allows you to convert an RGB color to an other color (see the supported list of colors below).

โš ๏ธ I'm not a color expert. Most of the implementation formula's are based on articles that I founded on wikipedia, blog post but the colors conversion has been cross-checked with other websites and articles. But I'm open to any fixes if there are errors ๐Ÿ˜

Supported colors

Color Supported
Rgb โœ…
Ansi โœ…
Cymk โœ…
Grayscale โœ…
Hex โœ…
Hsl โœ…
Hue โœ…
Hwb โœ…
Ycbcr โœ…
Yuv โœ…
Xyz โœ…
Adobe RGB โœ…
sRGB โœ…
Hcl โœ…
Hunter lab โœ…
Cie Lab โœ…
Lch Lab โœ…
Luv โœ…
Oklab โœ…
Oklach โœ…
rec.709 โœ…
rec.2020 โœ…
rec.2100 (PQ) โœ…
Xyy โœ…

Examples

An example is available in the example folder. You can run it by using the command below

cargo run --example example

lymui's People

Contributors

shigedangao avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jayesh1910

lymui's Issues

Random issue with hex to rgb

Lymui

Issue

  • Version: 1.1.0, 1.2.0
  • Platform: OSX, Linux
  • Description: The RGB generated value from HEX is wrong randomly (~1/20)

โšก๏ธ Thanks for reporting this issue โšก๏ธ

Decimal precision issue when using the NodeJS binding

Lymui

Issue

  • Version: All
  • Platform: OSX
  • Description: When doing a conversion based on the XYZ value it appear that there are randomly some loss of decimal precision when converting a float to a double which lead to falsy calculation later on. A post has been made on stackoverflow:

Floating point error

  • Error log: Error code

โšก๏ธ Thanks for reporting this issue โšก๏ธ

Update test regarding floating comparaison

Lymui

Issue

  • Version: 1.0.0

  • Platform: all

  • Description: A new feature of the test lib cunit of @Itzseven regarding the floating comparaison has been made. In order to make the test clearer an update of the lib and updating some test has to be done.

  • Error log: Nothing

โšก๏ธ Thanks for reporting this issue โšก๏ธ

Wrong output value for colorspace color

Lymui

Issue

  • Version: 1.0.1

  • Platform: All

  • Description: Imprecise value generated by Luv. It might be due to the fact that rounded value are use to calculate the Xyz value.

  • Test needed: Use the finite value from this website: Rgb XYZ matrices

Change unit testing lib

As the cunit library isn't maintained anymore. Maybe it might be a good idea to switch to an other test tools such as check

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.