Learning software · Learning tool

Code Playground

A coding sandbox for students where a shape, a set of sliders, and the code that draws it stay in sync. The code can be shown in Luau, GDScript, or Python.

code.rootsofreason.orgLiveOpen full size
The live sandbox.
Role
Design and development
Period
2026
Status
Live
Platform
Static site
Built with
  • React, single file from a CDN
  • Canvas

Why it's built this way

Kids learning to code often can't connect a line of code to what it does on screen. Here the shape, the sliders, and the code all edit the same thing, so changing one changes the other two.

Three languages

Luau is what Roblox uses, GDScript is Godot's, and Python is what most intro courses teach. A student sees the same idea in whichever one they'll use next.

Display settings

Choose a layout and palette. Your settings are saved in this browser.

Palette
Homepage layout
Motion

Harmonic drawing

The drawing in the middle of the ring. Drag across it or use the sliders.

3
25