Colour bars/Display: Difference between revisions
Content added Content deleted
(Changed way to call "setSource".) |
|||
Line 1,236: | Line 1,236: | ||
for color in Colors: |
for color in Colors: |
||
context.rectangle(x, 0, RectWidth, RectHeight) |
context.rectangle(x, 0, RectWidth, RectHeight) |
||
context.setSource(color |
context.setSource(color) |
||
context.fill() |
context.fill() |
||
x += RectWidth |
x += RectWidth |