Greyscale bars/Display: Difference between revisions
→{{header|Scala}}
m (→{{header|C}}: simplify) |
|||
Line 431:
Press Enter or Escape to exit the programs's display.
=={{header|
<lang
incr = int(256 / (i * 8))
c = 256
html "<table style='width: 200px; height: 11px;' border=0 cellpadding=0 cellspacing=0><tr>"
for j = 1 to i * 8
html "<td style='background-color: rgb(";c;",";c;",";c;");'></td>"
c = c - incr
next j
next i
html "</table>"
<pre>Run in a browser</pre>
▲}</lang>
=={{header|Seed7}}==
|