Skip to content

lcd.drawCircle

since 1.1.0

Draw a circle.

lcd.drawCircle(x, y, r)

Parameters

Name Type Required Description
x number yes X coordinate of the center of the circle
y number yes Y coordinate of the center of the circle
r number yes circle radius

Returns

Nothing.

Real-world usage

Called 26 times across 7 open-source Ethos Lua projects. A few short excerpts:
lcd.drawCircle(cx, cy, outer)

src/rfsuite/widgets/dashboard/context.lua:2208

setColor(255, 230, 120)
lcd.drawCircle(state.aimX, state.aimY, ring)

src/ethos-arcade/games/shooter/game.lua:577

setColor(52, 70, 96)
if lcd and lcd.drawCircle then
    lcd.drawCircle(cx, cy, radius)

src/ethos-heli-training/games/piroflip-chase/game.lua:997