To load an image instead of display some text, you can use an image()
function:
day = 23
month = 'december'
if month == 'december':
x = 'sagittarius.png' if (day < 22) else 'capricorn.png'
...
image(loadImage(x), 0, 0)
Note that the x
value is now assigned to a file name (with a .png
extension).