amandaghassaei / OrigamiSimulator

Realtime WebGL origami simulator
http://origamisimulator.org/
MIT License
1.11k stars 140 forks source link

Fold percentage opacity vs rgba #51

Open forresto opened 2 years ago

forresto commented 2 years ago

In the design tips, I thought that fold percentage via opacity meant define stroke colors as RGBA. But I guess that should actually be opacity on the strokes? It might be good to support both (Cuttle can do RGBA but not opacity so far.)

.cuttle.svg: https://cuttle.xyz/@forresto/folds-with-rgba-AJritDsxIJkN

image
edemaine commented 2 years ago

Good idea. This should not be hard to implement.

forresto commented 1 year ago

Cuttle's use of rgba was non-standard for SVG 1.1, oops. Now we output stroke-opacity and it works with OS. :)

image
edemaine commented 1 year ago

But it is standard for SVG 2 so I think it makes sense to support eventually. Probably good to avoid it in your software for now, though. 🙂