Tw1ddle / geometrize-haxe

:triangular_ruler: Geometrize is a Haxe port of primitive that geometrizes images into geometric primitives
https://www.geometrize.co.uk/
Other
348 stars 31 forks source link

gradients as colors #7

Closed mastef closed 2 years ago

mastef commented 6 years ago

For more natural "strokes", the shapes could have gradients instead of fill colors. This would obviously increase cpu by quite a factor.

Tw1ddle commented 2 years ago

I think this would be complicated to implement as part of the core optimizing algorithm, because you'd want to pick the "best" gradients, which would add another layer to the optimization problem.

However, it could be done as a cheap postprocessing effect by sampling the pixels under the shapes that were picked, along with whatever other additions you could use to make a shape look like a brushlike stroke.

I'm not going to implement this as part of this project, but I might make a separate tool for postprocessing shape data/images in future.