rgba values should be 0-255 vs. current 0-1
See original GitHub issueFor a simple point map with color, I am using the following:
width: 3
color: rgba(133,75,227,1)
On the other hand, if I define that color in hsv
I see it:
https://cartodb.github.io/renderer-prototype/example/mapbox.html#eyJhIjoiYmlnX2RhdGFfZXhhbXBsZVxuIiwiYiI6IjRkMjEyMzc1Mzg2YmFmMWEwOWJiODI2MDhjNjQ4MjE4OGRhM2E1YjAiLCJjIjoibWFtYXRhYWtlbGxhIiwiZCI6ImNhcnRvLmNvbSIsImUiOiJ3aWR0aDogICAzXG5jb2xvcjogaHN2KDAuNzMsMC42OSwwLjg5KVxuXG5cblxuXG4iLCJmIjp7ImxuZyI6LTEwNS4zMTk5MjAzMDA0MzE3LCJsYXQiOjQ5LjkwOTk5MjQzOTUwMjg0NH0sImciOjIuOTQ4MTk0MTc2NDQ5OTIxOH0=
any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Matplotlib ValueError: RGBA values should be within 0-1 range
Maybe some typo in color_list so that it contains one bad value? Or alpha is getting smaller than 0? By the way, a...
Read more >CSS3 Tour - RGBa Colour Values - George Ornbo
RGBa colour values work for current Webkit and Gecko browsers. They are not supported in Internet Explorer or Opera. As Chris Coyer notes...
Read more >The Power of the rgba() Color Function in CSS
Or we can experiment and discover the power of CSS rgba() color functions ... In our actual design, we will need to use...
Read more ><color> - CSS: Cascading Style Sheets - MDN Web Docs
These two colors mix, so you would need 0% whiteness and 100% ... rgb(255 0 153) /* Hexadecimal syntax with alpha value */...
Read more >CSS Color Module Level 3 - W3C
255 sRGB range will be outside the device gamut and will thus be mapped. 4.2.2. RGBA color values. The RGB color model is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes! 0-255 please!
Fixed by https://github.com/CartoDB/renderer-prototype/commit/9d2fb714543bec08356c3c8b4873b23f134ec116