Comments (3)
from palette.
I'm adding this in #90. It will be just straight (de)serialization without anything too fancy. The only exceptions are the alpha types that will be flattened, so a JSON serialization of RGB with transparency will be {"red":0.1,"green":0.2,"blue":0.3,"alpha":0.4}
.
Let me know if any of this doesn't work with your use case and maybe we can tweak it a bit. If you need other field names or a non-struct format, I would recommend creating a custom types for those representations and convert to and from palette types.
from palette.
To clarify: it's fine to reopen or continue the conversation even after it's merged. 🙂
from palette.
Related Issues (20)
- Terminal Colors HOT 7
- Add `ArithmeticsAssignable` trait, or equivalent HOT 2
- testing examples fail with clap v3.2.25 HOT 2
- Refactor the error type for hext to RGB(A)
- Implement LMS color space and CVD simulation HOT 8
- Add darktable UCS HOT 4
- Updating to clap version 4. HOT 7
- crate lacks test assets HOT 2
- tests fail when built with only feature std HOT 9
- Display P3 (and DCI-P3) support HOT 5
- Srgb -> Okhsl conversion results in NaN saturation HOT 5
- Organization and co-maintainers HOT 5
- Derrington-Krauskopf-Lennie (DKL) color space support HOT 5
- Issue with Angle Conversion from `f32`,`f64` to `u8` HOT 1
- Rethink conversion to support additional input and reusability
- Clear up the luma vs. luminosity mixup HOT 1
- CVD simulation
- CSS color module level 5 color space support
- Remove deprecated chromatic adaptation API
- Clarify that `libm` is needed for `no_std` HOT 7
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 palette.