Skip to content

BackgroundColor

Archan Patkar edited this page May 17, 2018 · 3 revisions

background(color)

This function sets the background color

Colors Available

Colors Number
BLACK 0
RED 1
GREEN 2
YELLOW 3
BLUE 4
MAGENTA 5
CYAN 6
WHITE 7

Example

You can also pass a number in background

from Panim import *

background(WHITE)
foreground(BLUE)
print("Hello World")
background(BLACK)
foreground(WHITE)
Clone this wiki locally