I want to fill different color after 6 circles in row and 6 in column
from PIL import Image, ImageDraw
import math
IMG_HEIGHT pixels
IMG_WIDTH = 1440
IMG_HEIGHT = 1280
img = Image.new("RGB", (IMG_WIDTH, IMG_HEIGHT))
draw = ImageDraw.Draw(img)
REC_START_X = 20 #Start (x and y) needs to be the same
REC_START_Y = 20
REC_STOP_X = 1020 #Stop (x and y) needs to be the same
REC_STOP_Y = 710
#Calculates the number of circles in one column and calculates the diameter.
circleDiameter = (REC_STOP_X - REC_START_X)/NUMBER_OF_CIRCLES_IN_ONE_ROW
circlesInOneColumn = int((REC_STOP_Y-REC_START_Y))
print("circlesInOneRow: ", NUMBER_OF_CIRCLES_IN_ONE_ROW, " circlesInOneColumn: ", circlesInOneColumn, " circleDiameter: ", circleDiameter)
#Draw the circles from left to right and then starting on the next row
img.show()
the code working but I am unable to put different color after 6 circles both row and column color.
