I have a very naive algorithm to generate an hsv color palette by using a nested loop to walk through each pixel, calculate the correct color for it, and then draw it to a canvas (using Painter), and then creating an Image for it.
The problem is that it doesn't scale well for sizes larger than a few hundred pixels.
Is there a more performant API I can use in common compose, or would I have to delegate to the platforms (Android and desktop in this case)?