#RGB colorpicker for something.
12 messages · Page 1 of 1 (latest)
:x: There's no active timeout infraction for user @glass onyx.
uhh
sorry, our filters will need some updates, but for now try to post less than 10 images at a time
import random
def GiveRGBColor() -> tuple[int,int,int]:
R = random.randint(0,255)
G = random.randint(0,255)
B = random.randint(0,255)
return R, B, G
RGBColor = GiveRGBColor()
print(RGBColor)
#Randomly generate RGB colors for your projects.```
Okay.
import random
import turtle as t
def GiveRGBColor() -> tuple[int,int,int]:
R = random.randint(0,255)
G = random.randint(0,255)
B = random.randint(0,255)
return R, B, G
RGBColor = GiveRGBColor()
print(RGBColor)
Screen = t.Screen()
Screen.colormode(255)
Screen.setup(300,300)
t.bgcolor(RGBColor)
t.exitonclick()
#Randomly generate RGB colors for your projects.
#Made by B3 or B3ttafish.```
well, looking at just the function, it seems fine
it would be good to put the screen drawing stuff into a main function
Okay.
I really like the idea of adding turtle import to draw the color so you can view it.
import random
import turtle as t
def GiveRGBColor() -> tuple[int,int,int]:
R = random.randint(0,255)
G = random.randint(0,255)
B = random.randint(0,255)
return R, B, G
RGBColor = GiveRGBColor()
print(RGBColor)
def ViewColor(RGBColor):
Screen = t.Screen()
Screen.colormode(255)
Screen.setup(300,300)
t.bgcolor(RGBColor)
t.exitonclick()
ViewColor(RGBColor)
#Randomly generate RGB colors for your projects.
#Made by B3 or B3ttafish.```