我就是改变颜色之后颜色相同但是表达效果不同。无法判等。怎样去进行这种判等操作?(超急,30号就要提交作品了)
相关程序代码:
def ChooseBackColor():
global temp,wi
r = tkinter.colorchooser.askcolor(title='画布颜色选取器')
for x in r:
s = r[1]
turtle.colormode(1.0)
print("Screen:",s,"Pen:",pen.pencolor())
if(pen.pencolor()==s):
messagebox.showerror("错误 - 画布","不能使用与画笔相同的颜色。")
else:
m.bgcolor(s)
temp=pen.pencolor()
wi=pen.width()
def ChooseBackColor():
global temp,wi
r = tkinter.colorchooser.askcolor(title='画布颜色选取器')
for x in r:
s = r[1]
turtle.colormode(1.0)
print("Screen:",s,"Pen:",pen.pencolor())
if(pen.pencolor()==s):
messagebox.showerror("错误 - 画布","不能使用与画笔相同的颜色。")
else:
m.bgcolor(s)
temp=pen.pencolor()
wi=pen.width()