Greyscale bars/Display: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 534: | Line 534: | ||
[https://easylang.online/apps/_greyscale.html Run it] |
[https://easylang.online/apps/_greyscale.html Run it] |
||
<syntaxhighlight lang="text"> |
<syntaxhighlight lang="text"> |
||
n = 8 |
|||
for row |
for row = 0 to 3 |
||
sz = 100 / n |
sz = 100 / n |
||
for i |
for i = 0 to n - 1 |
||
c = i / (n - 1) |
c = i / (n - 1) |
||
if row mod 2 = 1 |
if row mod 2 = 1 |
||
Line 547: | Line 548: | ||
. |
. |
||
n *= 2 |
n *= 2 |
||
. |
|||
</syntaxhighlight> |
|||
=={{header|Eiffel}}== |
=={{header|Eiffel}}== |