Hello @lennartd,
I was able to code this in steps:
- nested for() loops for nodes
- drawing lines between nodes (can be skipped)
- counter in the for() loop to number the nodes
- extracting data (numbers) from your summary (picture)
- if() else() to test for number to color the nodes as required
Can you provide a simple text file of the data on that page?
You may be able to export this.
A text file can be loaded and parsed to extract data:
I can provide guidance and hints but will not provide code.
The coding took some time and effort but was was well worth the reward.
Keep it simple and work through it in steps.
Save a working copy with comments along the way (number these) and keep adding to it.
Reference:
6.6: Nested Loops - Processing Tutorial
:)
