I am trying to compare a color to the current color of a polygon to see if they match in an if-statement. However, even if the colors are rigged so that they match, the if-statement always returns a false statement.
Ex.
#this successfully sets the polygon color to blue (I have visual confirmation)
polygon1.color = ‘blue’
#but this comparison always returns false
if (polygon1.color == ‘blue’)
is there a way to make this work? Or a different method besides .color? I have looked at the documentation but I could not find anything.
I hope someone can help.
Best.