GithubHelp home page GithubHelp logo

silentsoft / csscolor4j Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 31 KB

CSSColor4J is a simple Java library for parsing CSS color string representations.

License: Apache License 2.0

Java 100.00%
css color css-color parser rgb rgba cmyk hsl hsla named-color

csscolor4j's Introduction

csscolor4j's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

csscolor4j's Issues

Incorrect rounding

It seems most browsers don't round RGB values down but to the nearest integer.
I'm not sure whether this is the exact difference, but I did notice the browser's values were off by one when using One Dark's purple colour - hsl(286, 60%, 67%)
in browser (Firefox and Chrome): #c678dd
csscolor4j : #c578dd

Very small change that virtually nobody would notice, but I'm already fearing my issue tracker filling with people complaining about this.

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.