color-interpolate | Get interpolated color from a palette | Data Visualization library
kandi X-RAY | color-interpolate Summary
kandi X-RAY | color-interpolate Summary
Get interpolated color from a palette
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Interpolates a palette .
color-interpolate Key Features
color-interpolate Examples and Code Snippets
Community Discussions
Trending Discussions on color-interpolate
QUESTION
I feel like i'm missing something obvious here.
I am unable to get CImg's color-interpolated 2D triangle to work as expected. To add to the confusion, it behaves differently on my system version of CImg (cimg_version 245) to the latest in Github (cimg_version 300).
If i draw a simple filled triangle, everything works as expected. If i specify a colour for each vertex, there is a difference depending what CImg version i use:
cimg_version 245: Interpolation works to some extent but colour channels are clamped to 255 for values greater than 0. You can see this by comparing the center and right triangles in the image titled "CImg version: 245". The center image fades from {0, 0, 0} to {255, 255, 255} whereas the right image goes from {100, 100, 100} to {255, 255, 255}.
cimg_version 300: In this version, i was unable to get any interpolation to work.
So, am i missing a setting to enable interpolation or should i file a bug report?
...ANSWER
Answered 2021-Oct-29 at 09:18developer of CImg here. It looks like a bug indeed. I'll try to fix it ASAP. Thanks. Do not hesitate to fill an issue on our github site (https://github.com/dtschump/CImg/issues) when you encounter such strange behaviors.
EDIT : This should be fixed now, with github.com/dtschump/CImg/issues/332. New pre-release have been pushed on the CImg website.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install color-interpolate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page