HOME | DD

washwithcare — Square Sheet

Published: 2008-06-06 20:15:49 +0000 UTC; Views: 1354; Favourites: 18; Downloads: 48
Redirect to original
Description Based on the work [link] by ~DanRaccoon
Related content
Comments: 5

SelenaMoon [2008-06-18 12:52:19 +0000 UTC]

Um...the code stuff is kinda scaring me.
It's pretty?

👍: 0 ⏩: 0

clevercleverchris [2008-06-07 00:28:30 +0000 UTC]

wow that is amazing. that must have required a lot of coding!
Definitely going to the favourites!

👍: 0 ⏩: 1

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

washwithcare In reply to clevercleverchris [2008-06-07 15:38:53 +0000 UTC]

You just learn as you go and everything develops over time...

👍: 0 ⏩: 0