7
edits
No edit summary |
No edit summary |
||
Line 421: | Line 421: | ||
ones are. There are shifted sideways by half the size of a single cube for<br> | ones are. There are shifted sideways by half the size of a single cube for<br> | ||
each time the nested 'for loop' is calculating a further one.<br> | each time the nested 'for loop' is calculating a further one.<br> | ||
[[File:pattern_rhombus2.jpg|left|thumb|wrong!]] | |||
We have to consider that moving the columns in only one horizontal direction <br> | We have to consider that moving the columns in only one horizontal direction <br> | ||
Line 428: | Line 430: | ||
back to its original starting position. This can be done for example by declaring <br> | back to its original starting position. This can be done for example by declaring <br> | ||
a new variable that is working as a multiplying operator and carries switching <br> | a new variable that is working as a multiplying operator and carries switching <br> | ||
values of 1 and -1. | values of 1 and -1.<br><br><br><br><br><br> | ||
[[File:pattern_rhombus3.jpg|left|thumb|fixed!]] |
edits