185
edits
Line 467: | Line 467: | ||
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> | ||
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 476: | Line 474: | ||
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. | ||
[[File:pattern_rhombus2.jpg|left|thumb|wrong!]] | |||
[[File:pattern_rhombus3.jpg|left|thumb|fixed!]] | [[File:pattern_rhombus3.jpg|left|thumb|fixed!]] | ||
edits