PICO-8 Wiki
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Popular pages
Most visited articles
Spr
Splore
P8SCII
Fget
Sspr
Pal
Line
Pico-8 tutorials
Useful Pico-8 code
Community
Recent blog posts
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
PICO-8 Wiki
244
pages
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Popular pages
Most visited articles
Spr
Splore
P8SCII
Fget
Sspr
Pal
Line
Pico-8 tutorials
Useful Pico-8 code
Community
Recent blog posts
Editing
Pal
(section)
Back to page
Edit
Edit source
View history
Talk (0)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Examples== <syntaxhighlight lang="lua"> blink_frame = false t = 0 function _update() -- every 8th frame is a "blink frame" t = (t + 1) % 8 blink_frame = (t == 0) end function _draw() cls() -- reset the palette pal() if blink_frame then -- replace dark grey with red pal(5, 8) end -- draw the blinking light sprite spr(16, 56, 72) end </syntaxhighlight> [[File:Pal example.gif|thumb|220x220px]]
Summary:
Please note that all contributions to the PICO-8 Wiki are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab