Log In  

Can anyone tell me what’s the code for making a single image (from converted png) into a static wallpaper?

P#145402 2024-04-04 18:28 ( Edited 2024-04-05 18:47)

1

There may be a better way, but I've just been importing the PNG, pasting it into the first sprite slot in the gfx editor, then switching to the code editor and putting:

function _draw()
spr(0,0,0)
end

Then saving it as a ".p64" in the /appdata/system/wallpapers folder:

save /appdata/system/wallpapers/wallpaper_name.p64

P#145700 2024-04-04 19:44

Thanks 😊
btw I’ve did found the same method in the Discord server moments ago

P#145701 2024-04-04 19:46

How do you import the PNG?

P#145705 2024-04-04 20:26
1

I use the “import png” cartridge

P#145706 2024-04-04 20:28
3

Also after spr() you can do _draw=function()end to completely reduce CPU usage by wallpaper

P#145707 2024-04-04 20:30

[Please log in to post a comment]