Monday, January 4, 2016

Gamer


Been having a fine old time, seeing how the SVG code works to produce these colliding shapes. The second is the same code in a more object-oriented way (all the balls are arena functions, and one can modify everything at once). I really can't see any difference in the speed or performance of the ballsbecause ultimately the mathematics are the same. The shots below are from my hp screen, attached to a Surface tablet.





* * *
Where things are noticeably slower is on my smallish Samsung4 tablet. I am not surprised, since the speed is a function of momentum, and the latter takes the area of the circle as a proxy for mass. Still, the gamer in me...


No comments: