fogleman / primitive

Reproducing images with geometric primitives.
https://primitive.lol/
MIT License
12.35k stars 608 forks source link

Feature suggestion: colour gradient #35

Open TomHartleyYork opened 7 years ago

TomHartleyYork commented 7 years ago

I find these images hypnotic. I would like to see one composed of shapes with an RGB colour gradient fill. In many cases one shape (e.g., rectangle) with a gradient fill could outperform many single colour shapes.

So fewer parameters needed to fit the same image.

seanjensengrey commented 6 years ago

over_gradient

from https://medium.freecodecamp.org/using-svg-as-placeholders-more-image-loading-techniques-bed1b810ab2c

seems like an ideal candidate for replacing lots of primitives with a gradient across a primitive.

And in this example image, doing background segmentation might make the gradient be a single primitive (box) and a gradient with a small list of values.