Loading...
Processing Forum
Recent Topics
All Forums
Move this topic
Forum :
Share your Work
Programming Questions
Core Library Questions
Contributed Library Questions
Android Processing
Processing with Other Languages
Integration and Hardware
Library and Tool Development
Events and Opportunities
General Discussion
Sub forum :
Move this topic
Cancel
General Discussion
Other
GeoisArt
Why some of the variables like "diameter" when I create are blue, but some like "x" are black?
in
General Discussion
•
Other
•
7 months ago
Why some of the variables like "diameter" when I create are blue, but some like "x" are black?
1
Replies(4)
amnon.owed
Re: Why some of the variables like "diameter" when I create are blue, but some like "x" are black?
7 months ago
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.
GeoisArt
Re: Re: Why some of the variables like "diameter" when I create are blue, but some like "x" are black?
7 months ago
Thanks for you answer Amnon!
Leave a comment on amnon.owed's reply
asimes
Re: Why some of the variables like "diameter" when I create are blue, but some like "x" are black?
7 months ago
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
GeoisArt
Re: Re: Why some of the variables like "diameter" when I create are blue, but some like "x" are black?
7 months ago
Thanks for your answer asimes, the language is pretty flexible,though the colour is used for warning.
Leave a comment on asimes's reply
Change topic type
Topic Type :
Discussions
Questions
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to GeoisArt's question
Top
Reply
{"z25039414":[25080000002007382,25080000002008695,25080000002008697],"z4102734":[25080000002008627],"z7976654":[25080000002007457]}
Statistics
4
Replies
349
Views
0
Followers
Tags
No tags available for this topic.
Cancel
Actions
Permalink
Related Posts
save current x- and y-coordinate
Make squares automatically
Is there anything like a struct in ...
Solve polynomials?
Best webcam (Mac OS)