Skip to content

lcd.drawPoint

since 1.1.0

Draw a point at given coordinates.

lcd.drawPoint(x, y)

Parameters

Name Type Required Description
x number yes X coordinate
y number yes Y coordinate

Returns

Nothing.

Used in

Real-world usage

Called 2 times across 1 open-source Ethos Lua project. A few short excerpts:
lcd.drawPoint(math.floor(star.x), math.floor(star.y))

src/ethos-arcade/games/gulaxian/game.lua:684

lcd.color(lcd.RGB(190, 190, 190))
for i = 0, state.backgroundCount do
    local star = state.lowBackgrounds[i]
    lcd.drawPoint(math.floor(star.x), math.floor(star.y))

src/ethos-arcade/games/gulaxian/game.lua:668