Dave Pagurek
Dave Pagurek
Hey, sorry for the delay! Finally getting back to this. It looks like the tests are currently failing:
I'm going to close this as @Garima3110 finished it up in another PR. Thanks for your work getting this feature in!
@all-contributors please add @mathewpan2 for code
Sorry for the delay on this! I'm going to tag the color stewards, what are your thoughts? @paulaxisabel, @SoundaryaKoutharapu, @mrbrack, @TJ723, @Zarkv, @SkylerW99, @ramya202000, @hannahvy, @robin-haxx, @hiddenenigma Also @limzykenneth, since...
One piece of inspiration: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient They don't have an API for getting a specific color along the gradient, so this API is for something somewhat different, but they have one...
I think stops are at least worth considering for the future. At least personally, probably half of the gradients I've done with more than two colors have had non-evenly-spaced stops...
> That sounds like a great idea although we might want to play around with the parameters being used a bit since it might be annoying for beginners to have...
Hey @nickmcintyre, in other issues you've been thinking about how p5 (and JS in general) deals with array parameters, what do you think of this one? is this a pattern...
I think the biggest current technical limitation for interleaving colors and stops (the first two examples above) is just that our current jsdoc-based FES system isn't flexible enough to handle...
Previously, `get()` would always return an image of pixel density 1, regardless of the density of the main canvas, making it impossible to capture the full resolution of the canvas...