Posts

Showing posts with the label canvas

Simple canvas 2d physics

We were out playing pool a couple of nights ago. Instead of betting money on the games we used code-hours. I'm not very good at pool so in the end i was lucky to only owe my friend one code-hour. He wanted me to code a physics "demo" on a canvas element. Since i only had one hour to code we limited the "demo" to 2d and circles :) The implementation is quite ugly and the physics formulas are pretty much taken from an article at gamedev (which i can't find at the moment). Demo The result of my code-hour can be found at:    http://static.slackers.se/pages/javascript/canvas-simple-2d-physics/

jsTagCloud - JS canvas 3D tag cloud

jsTagCloud is a tag cloud plugin for jQuery. It uses the canvas element to render a 3d cloud that can be rotated with the mouse. It's made as a proof of concept, but it would be great if this someday evolved into a Wordpress plugin. So far i've only been able to test it in these browsers: Firefox/3.0.10 - Ubuntu 9.04 x64 yes, only one The tags in the demo is from this page and they should be clickable as well. The configuration of the plugin should be pretty obvious if you take a look at the source of demo.html . Features It's made as a jQuery plugin. Navigate the 3d cloud with the mouse pointer Clickable links I just wanted more than 3 items on my feature list :) Download and demo The source can be found at: https://projektserver.se/svn/tiny/javascript/jsTagCloud/ And a demo can be found at: http://slackers.se/resources/demo/jsTagCloud/demo.html FAQ q: Why is the text size jumping? a: Because i couldn't find any way to scale strings between integer ...