Oct-13-2017, 08:42 AM
(This post was last modified: Oct-13-2017, 08:42 AM by gruntfutuk.)
Please write [python] before you paste your code into a post, and then write [/python] after your code is pasted.
(If you prefer, you can paste your code, select it, and then click the python icon in the formatting bar of the post entry dialogue box to enter the start and finish tags for you.)
This will preserve the layout of your code as written in your text editor / IDE, with all the indentations that are critical to python displayed normally.
Without this, the indentations are messed up when you paste code, and we are not as easily able to see where problems might be.
With fillcolor() aren't you supposed to specify either R, G, B (reg, green, blue) colour values (integers), so not just your single
If you have a list of colours in a variable called
(If you prefer, you can paste your code, select it, and then click the python icon in the formatting bar of the post entry dialogue box to enter the start and finish tags for you.)
This will preserve the layout of your code as written in your text editor / IDE, with all the indentations that are critical to python displayed normally.
Without this, the indentations are messed up when you paste code, and we are not as easily able to see where problems might be.
With fillcolor() aren't you supposed to specify either R, G, B (reg, green, blue) colour values (integers), so not just your single
x
OR provide a colour string, 'red' or 'green' etc, or a hex value string?If you have a list of colours in a variable called
colours
, then you can index it using: for colour in colours:
, and on each pass through he loop colour
will contain each successive colour string.
I am trying to help you, really, even if it doesn't always seem that way