Get the color of a polygon

Hello :grinning:
I’m trying to get the name of the color of one of my polygons, but I couldn’t find anywhere for the right method (I found only set methods, such as “fillcolor” or “color”). Does anyone know a way I can get it?

Thank you!

Hi @Ido1122,

as far as I know, color can in fact be used to set as well as get the value. So YourPolygon.color should return the current color value.

Hey, thank you for your answer!
The .color method does give you a string back, but it’s not something you can actually use. So I just used a list to solve my problem.
Thank you for your time! :grinning: