We now have a WIP WebDrawingArea :o

For questions about Gambas web tools.
Post Reply
BruceSteers
Posts: 891
Joined: Thursday 23rd July 2020 5:20pm

We now have a WIP WebDrawingArea :o

Post by BruceSteers » Tuesday 2nd August 2022 5:09pm

Like the title says there is now a WebDrawingArea.class with a few emulated Paint instructions.

I asked on the m/l about the html <canvas> tag https://www.w3schools.com/tags/ref_canvas.asp
and if anything had been done with it as it looks like it could be a Paint alternative for web and Benoit went and did something with it :)

It's very WIP at present but it's going to open up all manner of things for us :)

I got it to do this...
http://138.68.116.47/cgi-bin/WebDrawingArea.gambas

That was just a tester i've been playing with but hand painted buttons and the like are soon to be possible :)

Well wishes
Bruce

BruceSteers
Posts: 891
Joined: Thursday 23rd July 2020 5:20pm

Re: We now have a WIP WebDrawingArea :o

Post by BruceSteers » Monday 8th August 2022 11:42am

My gambas coding must be improving.
I added Gradients to WebDrawingArea and didn't have to change a whole load of things to make it acceptable to Benoit :D

So Gradients are coming real soon :)

Next will be Painting text with gradients if wanted.

then supporting using images/patterns for Paint.Fill/Stroke

Personally i think this is all pretty exciting for gb.web.gui users :)
Attachments
Untitled.png
Untitled.png (197.77 KiB) Viewed 445 times

BruceSteers
Posts: 891
Joined: Thursday 23rd July 2020 5:20pm

Re: We now have a WIP WebDrawingArea :o

Post by BruceSteers » Tuesday 23rd August 2022 4:55pm

I made a hand drawn web version of the gradient button :)

My implementation of Painting the text is a bit rubbish but it sort of works for now until Ben make a proper version :)

http://bws.org.uk/cgi-bin/WebDrawingArea.gambas

It's a brave new world :)

Post Reply