Greyscale bars/Display: Difference between revisions
Content added Content deleted
Line 698: | Line 698: | ||
</pre> |
</pre> |
||
And here's another clever and shorter solution: |
And here's another clever and shorter solution: |
||
<lang futurebasic> |
<lang futurebasic>void local fn BuildWindow |
||
⚫ | |||
void local fn BuildWindow |
|||
⚫ | |||
'~'1 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
rect fill r, fn ColorWithWhite( gray, 1.0 ) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
gray += delta |
|||
⚫ | |||
⚫ | |||
⚫ | |||
gray += delta |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end fn |
end fn |
||
fn BuildWindow |
fn BuildWindow |
||
HandleEvents |
HandleEvents</lang> |
||
</lang> |
|||
=={{header|Gambas}}== |
=={{header|Gambas}}== |