documentation indexreference manualfunction index

Solid

Function: Solid (color):

Returns a Displayable that is solid, and filled with a single color. A Solid expands to fill all the space allocated to it, making it suitable for use as a background.

color - The color that the display will be filled with, given either as an RGBA tuple, or an html-style string

Example

init:
    image black = Solid((0, 0, 0, 255))
    image MediumVioletRed = Solid("#c71585")



documentation indexreference manualfunction index