from tkinter import *
#重返帝国彩字代码生成
def rgbtext(t,R,G,B):#通过rgb数值生成彩色代码
r16=str(hex(int(R)))[2:]
g16=str(hex(int(G)))[2:]
b16=str(hex(int(B)))[2:]
if len(r16)==1: r16="0"+r16
if len(g16)==1: g16="0"+g16
if len(b16)==1: b16="0"+b16
color16=f"#{
r16}{
g16}{
b16}"
r =