protected Action <MouseEventArgs> SetStrokeColour(string colour)
        {
            return(async _ =>
            {
                actualColor = colour;
                //Console.WriteLine($"set color: {colour}");
                await ctx.SetStrokeStyleAsync(colour);

                await ctx.SetfontAsync(canvasFont);
            });
        }
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            if (firstRender)
            {
                windowSize.Height = 400;
                windowSize.Width  = 400;
                Console.WriteLine($" canavsID: {canvasID}, {windowSize.Height}, {windowSize.Width}");
                ctx = new Canvas2DContext(JSRuntime, canvas);

                ClockTask = RunClock();
                await this.ctx.DrawBackground(windowSize.Height / 2);

                await ctx.SetStrokeStyleAsync(actualColor);

                await ctx.SetfontAsync(canvasFont);
            }
        }