surma / jxl-art

Web app to make art using JPEG XL.
https://jxl-art.surma.technology
Apache License 2.0
105 stars 9 forks source link

Pretify of Splines #9

Open KammutierSpule opened 2 years ago

KammutierSpule commented 2 years ago

Will be possible to pretiffy Spline differently?

This is how it looks after pretiffy, could it be inline ?

Spline 10 -10 33 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 -18 33 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 35 -18 33 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 200 340 500 340 EndSpline`

Desired:

Spline 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 50 200 200 200 EndSpline

surma commented 2 years ago

Yeah that'd definitely be better. Wanna whip up a PR?

KammutierSpule commented 2 years ago

I don't know web development, but can you point me where is this Prettify code? Where should I look at?