Colour bars/Display: Difference between revisions

Content added Content deleted
No edit summary
Line 946: Line 946:


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
col[] = [ 000 900 090 909 099 990 999 ]
col[] = [ 000 900 090 009 909 099 990 999 ]
w = 100.0 / len col[]
w = 100 / len col[]
for i = 1 to len col[]
for i = 1 to len col[]
color col[i]
color col[i]
move w * i 0
move w * (i - 1) 0
rect w 100
rect w 100
.
.
</syntaxhighlight>
</syntaxhighlight>