Discord
Login
Community
DARK THEME

how to change backgroung

help

Hi there,

could you explain what you would like to change?

If it is the color, that can be done at the beginning of your draw loop with the screen.clear() command.

screen.clear(color)
The color is defined as a string. Either in RGB format or in HEX format.

  • "rgb(255,255,255)": (rgb for red, green, blue) value in the range of 0 to 255 each
  • "#FFF" or "#FFFFFF": this notation uses hexadecimal, to describe the 3 components of red, green and blue

Check the documentation for more details.

Or if you would like to use an image you use the screen.drawSprite(...) command and adjust the width and height values to cover your whole screen.

Live Long and Tinker

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community