fogleman / primitive

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

Proposed score based cap #29

Open bmaltais opened 7 years ago

bmaltais commented 7 years ago

This change will allow users to specify a desired score to obtain using the new "ma" argument. For example -ma 0.04

If primitive reach this score before reaching the specified number of iterations (-n parameter) it will write the output and quit iterating.

This provides very consistent looking images independently of how many primitives and types required to obtain it.

DictumMortuum commented 7 years ago

I was just about to do this and create a pull request. Awesome!

KarelPeeters commented 7 years ago

Is there any chance you (@fogleman) will accept this pull request in the near future? This would be very useful for a project I'm working on. Would it be help you if I submit a new pull request that resolves this merge conflict?

migueldemoura commented 7 years ago

@flaghacker, you can use the fork from @bmaltais in the meantime.