public async ValueTask Render(GameContext game, Canvas2DContext context) { if (!this.Owner.Enabled || !this.Initialized) { return; } var oldPattern = context.FillStyle; var pattern = await context.CreatePatternAsync(Sprite.ElementRef, RepeatPattern); await context.SetFillStyleAsync(pattern); var w = _transform.World.Scale.X * this.Sprite.Bounds.Width; var h = _transform.World.Scale.Y * this.Sprite.Bounds.Height; await context.FillRectAsync(_transform.World.Position.X, _transform.World.Position.X, w, h); await context.SetFillStyleAsync(oldPattern); }