Comments (8)
Years later, I feel pretty strongly that this deserves to be its own module somewhere. The general feeling has shifted a bit in terms of dependencies being too "heavy" and thus my viewpoint has changed.
I'd still love to see something like this - it just shouldn't be in this package specifically.
Sorry for the notification years later, and hello to a bunch of past acquaintances. Hope you're all doing well
from color.
PR are welcome :)
from color.
+1 gonna take a shot at it.
from color.
Please do :)
from color.
@briancray schemas for color spaces?
from color.
I don't have time to write atm, but what I'm thinking would be nice is a new "class" that's an array of color instances, like backbone's Collection is an array of Model instances.
Basically, you could create an instance using the constructor like, new Schema([<color or Color instance>, ...])
, or constructor methods such as Schema.fromDegrees(<color>, <degrees>)
or Schema.fromCount(<color>, <number of colors>)
Then you could apply any of the Color
instance methods to the Schema
instance, such as mySchema.lighten(.5)
, which would iterate over the color instances and, if immutable, returns a new schema instance .5 lighter.
from color.
Gotcha. I like it; I'll get to work on it.
from color.
Not going to make the 1.x makeover but I'm definitely still interested in doing this.
from color.
Related Issues (20)
- Unexpected token _28 HOT 3
- Lib unnecessarily requires @babel/preset-env? HOT 1
- Error on function isLight() and isDark()
- Fix luminosity by removing underscore
- node_modules/color/index.js: Unexpected token: name (_28) in file node_modules/color/index.js at 236:30. HOT 1
- How to resolve React: Module parse failed: Identifier directly after number (numberic separator) HOT 1
- "Error: Unable to parse color from string: #10b981" HOT 1
- [BUG] `hex` method discards alpha HOT 3
- Invalid value input is not handled properly HOT 2
- Need help to update the @types/color definitions HOT 4
- Can't bundle js for react-native project
- `.hex()` silently drops alpha info. HOT 1
- Please just add to README about using v3 instead of v4 on unsupported envs HOT 3
- React native BUILD FAILED using [email protected]
- Relative Luminance equation HOT 1
- Bug in alpha handling during model conversions HOT 1
- ma.js HOT 1
- 🏳️🌈
- React Native is back! Thank's for listen to us! HOT 1
- Provide esm version / exports HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from color.