pico8 draw dot
To draw a dot in Lua using PICO-8, you can follow these steps:
Set the color: Use the
pal()
function to specify the color of the dot. For example,pal(7, 14)
will set the current color to the light blue palette index.Set the position: Use the
pset()
function to specify the position of the dot. For example,pset(50, 50)
will draw a dot at coordinates (50, 50) on the screen.Display the dot: Use the
flip()
function to update the display and show the dot on the screen.
Here's an example code snippet that puts it all together:
-- Set the color
pal(7, 14)
-- Set the position
pset(50, 50)
-- Display the dot
flip()
This code will draw a light blue dot at coordinates (50, 50) on the screen. Remember to adjust the color and position values to achieve the desired result.