Skip to content

Playground MVP [start here] #3

@PaperPrototype

Description

@PaperPrototype
Screen_Recording_2025-09-13_at_12.07.29_AM.mov

How the playground currently looks. I'll try to keep this up to date.

Playground component at src/lib/components/Playground/component.svelte

Tasks

How is it drawing the background?

const context2D = canvas.getContext('2d');

context2D.fillStyle = 'red';
context2D.fillRect(0, 0, canvas.width, canvas.height);

This code gives us a CanvasRenderingContext2D which lets us draw shapes to the screen!

You can also get a WebGLRenderingContext as well as a GPUCanvasContext.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions