Re: [PHP] Canvas examples

2008-06-16 Thread Per Jessen
Richard Heyes wrote:

 That's very cool, Richard.
 
 Well, thanks, but I wouldn't call it very cool.  

I thought it was pretty cool too - I didn't know about canvas, but
your example says a lot, I think. 


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-16 Thread Richard Heyes

I thought it was pretty cool too - I didn't know about canvas, but
your example says a lot, I think. 


But when you compare it to something like this:

http://ejohn.org/apps/processing.js/examples/custom/molten.html

it looks pretty basic (which it is). Mine is perhaps an intro, whereas 
this illustrates what can be done with some (a lot?) of work.


--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.org/sftpdrive|
++

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-16 Thread Per Jessen
Richard Heyes wrote:

 I thought it was pretty cool too - I didn't know about canvas, but
 your example says a lot, I think.
 
 But when you compare it to something like this:
 
 http://ejohn.org/apps/processing.js/examples/custom/molten.html
 
 it looks pretty basic (which it is). Mine is perhaps an intro, whereas
 this illustrates what can be done with some (a lot?) of work.

True - far too much work, in my opinion.  But I wouldn't mind seeing
some real life use/examples.  

I guess the other browser doesn't do much with canvas ? 



/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-16 Thread Richard Heyes
I guess the other browser doesn't do much with canvas ? 


Nope. Eg:

canvas id=foo
This gets shown on none supporting browsers, but not on supportive
browsers.
/canvas

MSIE just shows the text and doesn't do anything with the canvas.

One thing about using a canvas is bandwidth. If it's a big concern I 
would hazard a guess that a bar chart (for example) would cost less in 
terms of code required to build the image compared to JPGraph, and also 
less in terms of output (particularly if you were to use output 
compression).


--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.org/sftpdrive|
++

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-16 Thread Ray Hauge

Richard Heyes wrote:
I guess the other browser doesn't do much with canvas ? 


Nope. Eg:

canvas id=foo
This gets shown on none supporting browsers, but not on supportive
browsers.
/canvas

MSIE just shows the text and doesn't do anything with the canvas.

One thing about using a canvas is bandwidth. If it's a big concern I 
would hazard a guess that a bar chart (for example) would cost less in 
terms of code required to build the image compared to JPGraph, and also 
less in terms of output (particularly if you were to use output 
compression).




Another idea for dynamic graphing could be:

http://solutoire.com/plotr/

It also uses the canvas element, but if you use excanvas for IE it'll 
work in most newer browsers.  I've used it in a project to provide 
dynamic bar graphs from a queue so that they could see in semi-real time 
how many customer requests were in different queues.  It was an internal 
app, or else I'd link it :(


--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Canvas examples

2008-06-15 Thread Richard Heyes
Does anyone have any more examples of the new canvas element they've 
written?


FF only: http://www.phpguru.org/canvas.html

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.org/sftpdrive|
++

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-15 Thread David Giragosian
On 6/15/08, Richard Heyes [EMAIL PROTECTED] wrote:

 Does anyone have any more examples of the new canvas element they've
 written?

 FF only: http://www.phpguru.org/canvas.html

 --


That's very cool, Richard.

--David.


Re: [PHP] Canvas examples

2008-06-15 Thread Richard Heyes

That's very cool, Richard.


Well, thanks, but I wouldn't call it very cool. Now a graphing library 
that output the results using a canvas, thus negating the need for 
JPGraph would definitely be nice.


Or you could just use JPGraph and get to the pub earlier... :-)

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.org/sftpdrive|
++

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-15 Thread Ray Hauge

Richard Heyes wrote:
Does anyone have any more examples of the new canvas element they've 
written?


FF only: http://www.phpguru.org/canvas.html



This is a pretty interesting use of Canvas as well.  Thanks for sharing!

http://ejohn.org/blog/processingjs/

--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Canvas examples

2008-06-15 Thread Richard Heyes

This is a pretty interesting use of Canvas as well.  Thanks for sharing!

http://ejohn.org/blog/processingjs/


This is very nice.

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.org/sftpdrive|
++

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php