examples

L5 / Lua API / l5 / planned
L5 example snippets

Starter Lua examples for the upcoming runtime.

Parameters

Parameters are not fully documented yet.

Returns

Not specified.

Examples

No explicit examples yet.

Open prompt to experiment live.

Runtime Notes

No additional runtime notes yet.

Details

Use these as starter snippets. Runtime wiring exists; API coverage is still partial.

Pulse Circle

function setup()
  size(256, 256)
end

function draw()
  background(12, 12, 18)
  local r = 40 + math.sin(frameCount * 0.05) * 20
  fill(255, 120, 80)
  circle(width / 2, height / 2, r * 2)
end

Mouse Dots

function setup()
  background(255)
end

function draw()
  if mouseIsPressed then
    fill(30, 30, 30)
    circle(mouseX, mouseY, 10)
  end
end

Open the L5 try page ยท Open prompt

Live Preview

Embedded AC preview