[Gambas-user] gb.web.gui and Canvas

Bruce Steers bsteers4 at gmail.com
Mon Aug 1 19:58:52 CEST 2022


On Mon, 1 Aug 2022 at 14:16, Benoit Minisini <
benoit.minisini at gambas-basic.org> wrote:

> Le 31/07/2022 à 21:44, Bruce Steers a écrit :
> > Anything been considered with html Canvas?
> > https://www.w3schools.com/tags/ref_canvas.asp
> > <https://www.w3schools.com/tags/ref_canvas.asp>
> >
> > Looks like some kind of WebPaint.class could be added to gb.web.gui.
> >
> > Respects
> > BruceS
> >
>
> I have just committed an initial implementation of a WebDrawingArea
> control with its Paint class, based on <canvas>.
>
> That way, you can see how it should be done.
>

ooh , thank you Ben
wow , it looks complicated but looks like its' been made in such a way to
be able to be used on other clases too in the future.
I think i see what's going on. I can draw a square :)
I'm going to try adding Paint.Stroke()  and Paint.FillRect() methods
and Paint.StrokeStyle / FillStyle properties to set brush/colour/gradient

wish me luck ... :)

Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220801/232c025e/attachment.htm>


More information about the User mailing list