Ghoulboy78 / Scarpet-edit

A useful tool for developing decorative builds etc in scarpet.
Creative Commons Zero v1.0 Universal
22 stars 4 forks source link

Spray paint and reintroduce #45 #52

Closed Firigion closed 3 years ago

Firigion commented 3 years ago

I added the spray paint brush, with a bunch of algebra functions it needs. Maybe those should be abstracted to a library, like math.scl, but that's for another discussion.

I also reintroduced the changes in #45 that had been accidentally erased when merging, and further improved on the brush info command by structuring the parameters of the brush in a nicer way. There was a small bug with one of the old selection functions that was unreported, I fixed that one as well.

@Ghoulboy78 we'll need to be careful when merging this with #49, because brushes now require some extra stuff to have their info properly displayed (namely, a list of parameters added to global_brushes_parameters_map). Depending on which PR is merged first, the other one will have to add that to CONTRIBUTE.md. If the data is not added for a new brush, info will default to a less verbose and informative version, but it will still work, so it's not such a big deal. Same goes for #51, which will have to be updated to the new brush format once merged.