use <percentage> for alpha channel in toString()?
#334
-
|
hi, is it currently possible to serialize the alpha channel to a percentage value? i tried |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Oof, unfortunately no, you can only customize how coordinates are serialized but alpha is always a number. That's a pretty big oversight on our part, I'll convert this to an issue so we can implement it, but need to think of the best syntax to expose this nicely. |
Beta Was this translation helpful? Give feedback.
-
|
Color.js serializes
So <percentage> is accepted on input but not generated on output. |
Beta Was this translation helpful? Give feedback.
Oof, unfortunately no, you can only customize how coordinates are serialized but alpha is always a number. That's a pretty big oversight on our part, I'll convert this to an issue so we can implement it, but need to think of the best syntax to expose this nicely.