ssastre at seaswork.com
Tue May 27 14:01:57 UTC 2008
I dont know about anything to do that but sounds like a convenient way
to factor (encapsulating in a new object) all that drawing code. I think it
should be a concrete one like a Square class child of Shape class. Nothing stops
you to creating those. I use a lot the "Seaside scriptaculous way" of
we are (slowly) providing access to jQuery features.
> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre
> de Yan Laporte
> Enviado el: Lunes, 26 de Mayo de 2008 15:48
> Para: Seaside - general discussion
> Yes, but not quite.. What I see in the HTML5 package is just the
> canvas tag, not the facilities to draw to this canvas. I'll explain
> what I mean with a small example that works without the facilities I
> html canvas width:100;height:100;script:(
> assign:Color blue);
> arguments:#(10 10 40 40))).
> The code above draws a simple blue square.
> Now I far form an expert and I suspect this code could be lighter so I
> am open to suggestions.
> Now, what I meant by classes to make this easier would beto allow
> something along the lines of:
> html canvas width:100;height:10.
> (DrawingContext on:myCanvas)
> fillRect:(10 at 10 extent:40 at 40).
> Where DrawingContext is this thing that doesn't exist yet...
> 2008/5/26 Philippe Marschall <philippe.marschall at gmail.com>:
> > 2008/5/26 Yan Laporte <spamlessyan at gmail.com>:
> >> I remember someone was working on smalltalk classes to
> make it easier
> >> wanting to do exactly that and was wondering if there is anything
> >> available before I duplicate efforts.
> >> I didn't find anything relevant in squeaksource. Anyone?
> > HTML5 from the Seaside repository?
> > Cheers
> > Philippe
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside