Stuart Axon
2010-10-15 23:45:27 UTC
The two transform modes we have are well and good, but it would be really useful
to have a placement mode that works like opengl, centered around the current
position.
This would mean that the following would place a large circle, with a small
circle centered on it:
fill(0.4)
ellipse(0, 0, 100, 100)
fill(0, 0, 0.4)
ellipse(0, 0, 50, 50)
I'd propose one of these to activate it:
placement(mode=CENTER)
transform(placement=CENTER)
Make sense ?
(Maybe I'm missing something here, but drawing from the center seems a bit
tricky right now)
Maybe I should make a new shoebot grammar to add the placement command though as
it's not strictly nodebox any more.
S++
to have a placement mode that works like opengl, centered around the current
position.
This would mean that the following would place a large circle, with a small
circle centered on it:
fill(0.4)
ellipse(0, 0, 100, 100)
fill(0, 0, 0.4)
ellipse(0, 0, 50, 50)
I'd propose one of these to activate it:
placement(mode=CENTER)
transform(placement=CENTER)
Make sense ?
(Maybe I'm missing something here, but drawing from the center seems a bit
tricky right now)
Maybe I should make a new shoebot grammar to add the placement command though as
it's not strictly nodebox any more.
S++