12,297
edits
m (→Sofakissen) |
|||
Line 458: | Line 458: | ||
In einem Pseudocode könnte dies so aussehen: | In einem Pseudocode könnte dies so aussehen: | ||
<syntaxhighlight lang="cpp"> | |||
for: i=0; i<8; ++i | |||
if: i mod 4 = 0 | |||
draw yellow-orange rectangle | |||
if: i mod 4 = 1 or 3 | |||
draw little squares and a red rectangle between two of them // from the top to the bottom | |||
if: i = 2 | |||
draw orange rectangle | |||
if: i = 6 | |||
draw big red rectangle | |||
</syntaxhighlight> | |||
===Sofastoff=== | ===Sofastoff=== |