timdp / swirly

A marble diagram generator.
https://swirly.dev
MIT License
118 stars 3 forks source link

Negative numbers #49

Closed hennihaus closed 7 months ago

hennihaus commented 7 months ago

Hello @timdp, how can I use negative numbers in this editor to produce something similar as shown below?

Bildschirmfoto 2024-03-23 um 12 07 04
timdp commented 7 months ago

The fact that those are numbers don't really matter. Events can take any text-based value/label. The default is the single-letter ID in the observable itself; you can override each one using the := operator. For example:

--x--y--|
x := 42
y := -1
hennihaus commented 7 months ago

Thank you for the quick answer. I had an empty line between the marble and numbers. That was my error.