Tetris clones? Shootemups? Minesweeper? Dig out those old javascript games or lurk around the flash games sites and find something you think would make a...
I have worked out how to create your own custom contexts. My code is very robust, it makes no variable pollution as everything is local to an anonymous...
Image distortion (skew), check it out, needs some kind of fix for extreme angles as it kind of messes up, and you cant rotate more than 90 degrees or inverted...
Can anyone explain why the image gets progressively darker when copied back and forth between two canvases in Firefox 1.5 final, or is that a bug? Opera acts...
I've implemented a first version of a draggable, zoomable map, using a canvas and drawImage. The basic idea is to use a relatively high-resolution map which...
Hi Will, Looks nice-- but I do have to wonder if canvas is the right tech for something like this. Especially for maps, nicely zoomable SVG seems to be the...
Hi, it's a week i'm studying canvas tag, i'm java programmer. I'm doing a business project designer using canvas. I' ve to draw flow charts using canvas,...
Instead of further working on the origional canvascape code I am restarting from the bottom up with a new infrastructure that will alow maps as complex as...
This is a great start! I've heard that when the curvature is too great it has something to do with the horizon setting being too close? Not sure if that's...
Hedger Wang has created a nifty clock widget using canvas in FF and vml in IE: http://www.hedgerwow.com/360/dhtml/ui_clock/demo.html and it even degrades...
Hi, Is there a nimple way of tracking the mouse x,y position relative to the canvas pos. The painting demos I have seen all hard code the canvas tag to an x y...
... The only standard DOM method you have at your disposal is MouseEvent.clientX and MouseEvent.clientY, which are the mouse positions relative to the...
Arve Bersvendsen
arveb@...
Jan 11, 2006 2:37 pm
109
... canvas ... Here is what I managed to code using your example: http://teethgrinder.co.uk/canvas/mouse-pos.html I tried your sample code but it does not seem...
... I haven't been able to determine why FF's values are so much off, but have a look at my example here: ...
Arve Bersvendsen
arveb@...
Jan 11, 2006 5:11 pm
111
... In my canvas experiment, I use the offsets of the canvas to adjust the clientX and clientY of the mouse event. View source on the following link and...
... No, this is because you have nested positioned elements on that page, and offsetTop/Left work in relation to the next positioned ancestor (just like CSS's...
... Thanks, this works fine! I guess cacheing the offsets will make everything work a bit faster. ... What we need is a 'canvas.getMousePos()' method or...
... Here is a page I just created which demonstrates (I think) what you are after: http://www.random.abrahamjoffe.com.au/public/JavaScripts/preload.htm ...
... Browsers will raise onload and onerror events when images are loaded, you can use this to determine how much has loaded. A simple example on how to use...
Arve Bersvendsen
arveb@...
Jan 12, 2006 10:04 am
116
... Sorry, I should have made myself clearer. I was wondering if I could figure out how much of a single image had downloaded every 0.25 of a second. E.g: 25%...
For that level of access to the streams you'll probably have to live in a browser extension. I know that the Yahoo Image uploader does that kind of progress...
I've seen several data: url creation programs as well as several websites which do it as well - but what's interesting is that some seem to be "better" than...
... I assume that you are uploading something like a bitmap and receiving perhaps a jpeg or png from the page? If you convert the image into the desired file...
Next week's challenge involves creating something that draws something to canvas after the page is loaded. For example dynamic server stats, or a slideshow...