#RGB colorpicker for something.

12 messages · Page 1 of 1 (latest)

deep bramble
#

!unmute @glass onyx

late iglooBOT
#

:x: There's no active timeout infraction for user @glass onyx.

deep bramble
#

uhh

#

sorry, our filters will need some updates, but for now try to post less than 10 images at a time

glass onyx
#
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.```
glass onyx
glass onyx
#
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.```
sturdy wolf
#

well, looking at just the function, it seems fine

#

it would be good to put the screen drawing stuff into a main function

glass onyx
#

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.```