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

Bruce Steers bsteers4 at gmail.com
Wed Aug 3 12:54:18 CEST 2022


On Tue, 2 Aug 2022 at 15:35, Bruce Steers <bsteers4 at gmail.com> wrote:

>
>
>
> On Mon, 1 Aug 2022, 18:58 Bruce Steers, <bsteers4 at gmail.com> wrote:
>
>>
>>
>> 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 ... :)
>>
>
> I think i prefer the way you did it ;) lol
> It works..
>

I've tried to implement Gradients and CSS values for fill and stroke
styles.  (just images left to support now)
Made a Gradient.class

https://gitlab.com/bsteers4/gambas/-/commit/f36bf206d1123df808655d44db0c6f065a6451e5

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


More information about the User mailing list