Code Monkey home page Code Monkey logo

color's People

Contributors

skinnypetethegiraffe avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

heathmorgan

color's Issues

Support HSL color space

Describe the feature
A function provider for the HSL color space. RGBA is currently supported, so having a similar provider for the HSL color space is vital.

Describe why this feature will be useful
Allows for more control during manipulation, and provides easy ways to saturate or lighten colors.

Describe alternatives you've considered
RGBA but is limited.

Additional context
N/A

`toHexString()` returns invalid hex

It looks like toHexString is returning invalid 5-char hexcodes

Steps to reproduce the behavior:

import { RGBA } from '@skinnypete/color'

console.log(RGBA.fromHex('#0075FF').toHexString())  // #075ff

#075ff is invalid in this case. Seems to be dropping the first 0 from #0075ff.

Running a quick test, it seems to happen when there is a 0 as the first character. Replacing it with a 1 seems to fix it:

#0075FF --> #075ff
#1075FF --> #1075ff

0075FF --> #075ff
1075FF --> #1075ff

07FF --> #077ff
17FF --> #1177ff

07FA --> #077ff
17FA --> #1177ff

#07FA --> #077ff
#17FA --> #1177ff

Support HWB color space.

Describe the feature
A function provider for the HWB color space. RGBA is currently supported, so having a similar provider for the HWB color space is vital.

Describe why this feature will be useful
Allows for more control during manipulation, and provides easy ways to whiten or blacken colors.

Describe alternatives you've considered
RGBA, but is limited.

Additional context
N/A

This library is amazing!

I just want to thank you for such an incredible library. I've been searching for a modern, strongly typed, 0 dep color library for like a week now before stumbling upon this gem.

I was halfway through making my own before I found this. Just wanted to say thank you for releasing this amazing work ๐Ÿ™

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.