skinnypetethegiraffe / color Goto Github PK
View Code? Open in Web Editor NEWA modern lightweight library for color manipulation and conversion.
Home Page: https://skinnypetethegiraffe.github.io/color/#/
License: MIT License
A modern lightweight library for color manipulation and conversion.
Home Page: https://skinnypetethegiraffe.github.io/color/#/
License: MIT License
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
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
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
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 ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.