Loading...
Logo
Processing Forum
Why some of the variables like "diameter"  when I create are blue, but some like "x" are black?

Replies(4)

This is syntax coloring to make the code easier to read.

All the words on the list are colored...

https://github.com/processing/processing/blob/master/java/keywords.txt

All the words not on the list are black.
When in doubt, it is generally best to avoid using names that Processing highlights. The rules for when it is safe to use them are complicated, I asked a similar question (ignore the part about vectors):  http://forum.processing.org/topic/when-is-it-bad-to-use-text-processing-highlights
Thanks for your answer asimes, the language is pretty flexible,though the colour is used for warning.