deviant art

Deviant Login Shop  Join deviantART for FREE Take the Tour
[x]
Download File
SWF, 1.1 KB
more ▶

More from ~washwithcare

Featured in Groups:

Details

June 6, 2008
1.1 KB
300×350
Link
Thumb

Statistics

Comments: 5
Favourites: 16 [who?]

Views: 618 (0 today)
Downloads: 36 (0 today)
[x]
:iconwashwithcare:
Based on the work [link] by :icondanraccoon: ~DanRaccoon
Add a Comment:
 
love 0 0 joy 0 0 wow 1 1 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconselenamoon:
Um...the code stuff is kinda scaring me.
It's pretty?
Reply
:iconclevercleverchris:
wow that is amazing. that must have required a lot of coding! :D
Definitely going to the favourites!
Reply
:iconwashwithcare:
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.
Reply
:iconclevercleverchris:
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
Reply
:iconwashwithcare:
You just learn as you go and everything develops over time...
Reply
Add a Comment: