Great canvas article and demo

2013-09-06 Thread Jon Kleiser
Hi Alex, From watching I knew you were working on some canvas stuff, and I was curious to find out. ;-) I really like your article at , and the demo at . I'll take a clo

Re: Great canvas article and demo

2013-09-06 Thread Alexander Burger
Hi Jon, thanks for the feedback! :) > A couple of questions: > 1) Will your canvas library allow the use of non-integer values? The Yes. JavaScript doesn't really care about the type of an argument, so you should be able to pass a string like "0.5", or (format Number 3), or whatever. > reason

Re: Great canvas article and demo

2013-09-06 Thread Jon Kleiser
Hi Alex, > Hi Jon, > > thanks for the feedback! :) > > >> A couple of questions: >> 1) Will your canvas library allow the use of non-integer values? The > > Yes. JavaScript doesn't really care about the type of an argument, so > you should be able to pass a string like "0.5", or (format Number 3),

Re: Great canvas article and demo

2013-09-06 Thread Alexander Burger
Hi Jon, > > Do you mean the box around the whole canvas (there is no dedicated > > X-axis)? In fact, the box is not part of the canvas itself, but appears > > because of the CSS style "canvas {border: 1px solid}". > > No, I mean the redish horizontal line in the middle of the canvas. You can Ah,

Re: Great canvas article and demo

2013-09-06 Thread Alexander Burger
On Sat, Sep 07, 2013 at 08:01:46AM +0200, Alexander Burger wrote: > OK. So this could be written as (csTranslate "16.5" "16.5") in PicoLisp? > > Another possibility would be to set (csLineWidth "0.5"), right? Oops, no, forget the second one :) This won't produce a _sharper_ line. -- UNSUBSCRIBE:

Re: Great canvas article and demo

2013-09-06 Thread Jon Kleiser
Hi Alex, > Hi Jon, > >> > Do you mean the box around the whole canvas (there is no dedicated >> > X-axis)? In fact, the box is not part of the canvas itself, but >> appears >> > because of the CSS style "canvas {border: 1px solid}". >> >> No, I mean the redish horizontal line in the middle of the

Re: Great canvas article and demo

2013-09-08 Thread Tomas Hlavaty
Hi Alex, very nice demo indeed, especially the use of plio protocol to do stuff in the browser;-) Another way of achieving the same result without any need for javascript would be using SVG. It works very well across browsers nowadays. Canvas could be an iframe with a refresh rate if required an

Re: Great canvas article and demo

2013-09-09 Thread Alexander Burger
On Fri, Sep 06, 2013 at 06:54:34PM +0200, Alexander Burger wrote: > I would propose that by convention we put new articles always on the > topmost position. Are there other opinions? If not, perhaps we should > (manually) re-order the existing list? Or better not, seems too tedious ;-) So I only

Re: Great canvas article and demo

2013-09-15 Thread Tomas Hlavaty
Hi Alex, as a proof of concept, I have implemented your zapper demo using svg and without any javascript, see http://logand.com:2234/ Tomas Hlavaty writes: > Another way of achieving the same result without any need for > javascript would be using SVG. It works very well across browsers > nowad

Re: Great canvas article and demo

2013-09-15 Thread Joe Bogner
Tomas, That is interesting! I was playing around with your demo and ran a little bookmarklet that would refresh the stepped version automatically. I first included jquery through a bookmarklet. Then, I pasted this into my javascript console window: var refresh = function(location) { $.get(l

Re: Great canvas article and demo

2013-09-15 Thread Alexander Burger
Hi Tomas, > as a proof of concept, I have implemented your zapper demo using svg and > without any javascript, see http://logand.com:2234/ Very nice indeed! SVG is a good alternative to Canvas, it seems. > 1) It uses svg instead of canvas, meaning that: > > - There is no javascript required

Re: Great canvas article and demo

2013-09-16 Thread Tomas Hlavaty
Hi Joe, Joe Bogner writes: > I was playing around with your demo and ran a little bookmarklet that > would refresh the stepped version automatically. > > I first included jquery through a bookmarklet. Then, I pasted this > into my javascript console window: > > var refresh = function(location) { 

Re: Great canvas article and demo

2013-09-16 Thread Klaus Schilling
From: Alexander Burger Subject: Re: Great canvas article and demo Date: Mon, 16 Sep 2013 08:25:25 +0200 > Hi Tomas, > > > as a proof of concept, I have implemented your zapper demo using svg and > > without any javascript, see http://logand.com:2234/ > > Very ni

Re: Great canvas article and demo

2013-09-16 Thread Alexander Burger
On Mon, Sep 16, 2013 at 10:20:03AM +0200, Klaus Schilling wrote: > Would it also be feasible to use (encapsulated?) postscript instead of > SVG? Probably. But what surely works well is Gnuplot. We used it in the mentioned project to draw the final data. Code fragments: In a library file: #

Re: Great canvas article and demo

2013-09-16 Thread Jakob Eriksson
On September 16, 2013 at 9:30 AM Tomas Hlavaty wrote: > > 3) I guess most of the overhead of the http request is probably >establishing the connection. My bett is that it doesn't really >matter if you send 1kB or 5kB of data. For example, if I run this It might matter, the only way t

Re: Great canvas article and demo

2013-09-16 Thread Tomas Hlavaty
Hi Jakob, Jakob Eriksson writes: > On September 16, 2013 at 9:30 AM Tomas Hlavaty wrote: >> >> 3) I guess most of the overhead of the http request is probably >>establishing the connection. My bett is that it doesn't really >>matter if you send 1kB or 5kB of data. For example, if I run

Re: Great canvas article and demo

2013-09-16 Thread Tomas Hlavaty
Hi Alex, Alexander Burger writes: > But what surely works well is Gnuplot. We used it in the mentioned > project to draw the final data. Code fragments: the advantage of gnuplot is that you get lots of drawing features for free. Btw, it looks like gnuplot can generate svg: http://www.gnuplot.in

Re: Great canvas article and demo

2013-09-16 Thread Tomas Hlavaty
Hi Klaus, Klaus Schilling writes: > From: Alexander Burger >> > as a proof of concept, I have implemented your zapper demo using svg and >> > without any javascript, see http://logand.com:2234/ >> >> Very nice indeed! SVG is a good alternative to Canvas, it seems. >> > Would it also be feasibl