News archive
Glowspot glowing link script
I've been playing about with canvases again, and this time I have produced
a script that attempts to mimic the glowing effect on Chrome's tabs when
you hover your mouse cursor over them. It's not quite the same, but it is
a bit of fun and gave me a chance to try out the toDataURL
function.
Take a look at the new Glowspot page for full details.
SVGGraph's new axis options
The new options in version 2.3 are not very complicated, but I'm not very good at explaining them either. To make things clearer, I've created a page full of examples - the axis and grid options page.
I apologise in advance for the hideous colour scheme on some of the bars in the examples.
SVGGraph 2.3
This new version of SVGGraph adds three more types of graph - horizontal versions of the bar, stacked bar and grouped bar graphs.
Also in this update, I've added options for controlling the region of the graph displayed within the grid (by specifying the minimum and maximum values), and an option to control the grid divisions.
The 3D bar graph has been slightly updated too, and now supports displaying negative values. You can get a copy of this new version by visiting the downloads page.
mozRequestAnimationFrame and webkitRequestAnimationFrame
Following on from my look at setInterval, I've been looking into these new global timing functions for use in animations. Firefox has mozRequestAnimationFrame and Chrome has webkitRequestAnimationFrame and if either of them are available in your browser it will be used to update the clock in the canvas below.
These functions act similarly to setTimer
, though they trigger
the callback function when the browser thinks it is time to update the page
instead of at a fixed interval.
TagCanvas 1.7
TagCanvas 1.7 doesn't have much in the way of new features, but I have spent a lot of time improving how things work. I've added a new option for setting the update interval and another option for reading tag weights from a data attribute, all the rest of the modifications are internal changes to make TagCanvas work better.
To do this I've done a lot of profiling using Chrome and IE's built-in developer tools, and using Firebug for profiling on Firefox. This led me to change and refactor a lot of internal functions, but I've also improved IE compatibility and fixed some other small glitches along the way.
The updated files are available from the TagCanvas page.