Example color-circles

This image is a grid of circles. Each circle is a different colour. The amount of red increases along the x axis, the amount of blue increases down the y axis.

Code

import sympl.tkcanvas
from colour import Color
 
width = 600
height = 600
gridsize = 50
radius = 25
 
def draw(canvas):
    color = Color()
    for x in range(gridsize//2, width, gridsize):
        color.set_red(x/width)
        for y in range(gridsize//2, height, gridsize):
            color.set_blue(y/height)
            canvas.create_oval(x-radius, y-radius, x+radius, y+radius, fill=color, outline='')
 
sympl.tkcanvas.tk_image(width, height, draw)