We now have a WIP WebDrawingArea :o

For questions about Gambas web tools.
Post Reply
User avatar
BruceSteers
Posts: 987
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

We now have a WIP WebDrawingArea :o

Post by BruceSteers »

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
If at first you don't succeed , try something different.
BruceS
User avatar
BruceSteers
Posts: 987
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: We now have a WIP WebDrawingArea :o

Post by BruceSteers »

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 688 times
If at first you don't succeed , try something different.
BruceS
User avatar
BruceSteers
Posts: 987
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: We now have a WIP WebDrawingArea :o

Post by BruceSteers »

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 :)
If at first you don't succeed , try something different.
BruceS
Post Reply