washwithcare In reply to clevercleverchris [2008-06-07 13:25:22 +0000 UTC]
It's actually pretty simple.
The code for the design is
for (i=0;i<=steps;i++){
Item.moveTo(aX+(cX-aX)*i/steps,aY+(cY-aY)*i/steps)
Item.lineTo(bX+(dX-bX)*i/steps,bY+(dY-bY)*i/steps)
}
for (i=0;i<=steps;i++){
Item.moveTo(aX+(bX-aX)*i/steps,aY+(bY-aY)*i/steps)
Item.lineTo(cX+(dX-cX)*i/steps,cY+(dY-cY)*i/steps)
}
All the rest of the code is just for making it interactive.
👍: 0 ⏩: 1
clevercleverchris In reply to washwithcare [2008-06-07 14:03:04 +0000 UTC]
interesting how so little coding can produce such a cool effect.
although the parts in the middle about the control nodes still looks quite complex... you must be a genius to come up with that XD
👍: 0 ⏩: 1