Feb-20-2018, 08:39 PM
Hello everyone,
I know it may be an easy fix but I'm new to programming and I need some help. I am supposed to create a random color and then display that color(this is only a small part of the assignment). I know it is something simple. I have the random r,g,b values for the color, I just don't know how to display it. I am supposed to make the picture 300w x 200h along with the random color.
from random import *
def main():
showInformation("I will now pop up a randomly colored window")
r = randrange(1,24)
g = randrange(1,200)
b = randrange(30,240)
return makeColor (r,g,b)
makeEmptyPicture(300,200,)
I know it may be an easy fix but I'm new to programming and I need some help. I am supposed to create a random color and then display that color(this is only a small part of the assignment). I know it is something simple. I have the random r,g,b values for the color, I just don't know how to display it. I am supposed to make the picture 300w x 200h along with the random color.
from random import *
def main():
showInformation("I will now pop up a randomly colored window")
r = randrange(1,24)
g = randrange(1,200)
b = randrange(30,240)
return makeColor (r,g,b)
makeEmptyPicture(300,200,)