Archive for the ‘JavaScript’ Category

On April 6th, 2009 milburn wrote…

Mandelbrot Revisited

Canvas

The Mandelbrot Set

In my last post about the mandelbrot set I said:

I would put the Mandelbrot explorer script online however it is very computationally intense. It takes around 5 seconds to generate 1 image.

Now I have created a new explorer which you can use.

I tried to find a way of replicating my original PHP script in JavaScript. That way the processing is all done on the client computer and not my server. For a while I didn’t think it was possible until today I came across pixel manipulation using the Canvas element. Internet Explorer users will be disappointed to know that the Canvas element doesn’t work on their browser and this therefore won’t work. Read the rest of this entry »

On April 6th, 2009 milburn wrote…

Javascript Anaglyph Maker

mars My own anaglyph maker uses PHP to make anaglyphs from two images uploaded by a user. But I’ve found someone who has gone one step further. They’ve managed to make them using JavaScript alone. Unfortunately Internet Explorer fails miserably on this task. This is because his method uses the canvas object which so far is only supported by Firefox, Safari and Opera.

It simply loads the two images into two canvas elements and extracts the red channel from one of them and inserts that red channel into the other canvas. Hey presto you get a simple anaglyph. This method has another flaw. Modifying an images data channels can only be done from an image on the same domain to obey the same domain security policy. A small proxy sorts that out but means the solution isn’t all JavaScript. Read the rest of this entry »

On February 13th, 2009 milburn wrote…

Instant Star Rating

Released earlier this week was my star rating tool. I’d actually started this about a year ago but only remembered last weekend that I had it gathering dust in my hard drive.

Instant Star Rating allows you to create 5 star ratings in several different styles to go on your website. Unlike other star raters it doesn’t use Ajax. This is because Ajax doesn’t work across domains. Instead it uses the dynamic script method. When the user clicks on a star it loads a new script from the server. Read the rest of this entry »

Proudly powered by WordPress with plane theme by me! | © 2007 - 2017 Thomas Milburn | Valid CSS and HTML