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[0], color[1], color[2])
context.setSource(color)
context.fill()
context.fill()
x += RectWidth
x += RectWidth