import numpy as np
import cv2

canvas = np.zeros((300, 300, 3), dtype="uint8")
green = (0, 255, 0)
red = (0, 0, 255)
blue = (255, 0, 0)
white = (255, 255, 255)

cv2.line(canvas, (0,0), (300, 300), green) # img, start, end, color
cv2.line(canvas, (300, 0), (0, 300), red, 3) # last parameter is thickness

cv2.rectangle(canvas, (10, 10), (60, 60), green)
cv2.rectangle(canvas, (50, 200), (200, 225), red, 5)
cv2.rectangle(canvas, (200, 50), (225, 125), blue, -1)

cv2.imshow("Canvas", canvas)
cv2.waitKey(0)

canvas = np.zeros((300, 300, 3), dtype="uint8")
(centerX, centerY) = (canvas.shape[1]//2, canvas.shape[0]//2)
for r in range(0, 175, 25):
    cv2.circle(canvas, (centerX, centerY), r, white)


cv2.imshow("Circle", canvas)
cv2.waitKey(0)


canvas = np.zeros((300, 300, 3), dtype="uint8")
for i in range(0, 25):
    radius = np.random.randint(5, high=200)
    color = np.random.randint(0, high=256, size=(3,)).tolist()
    pt = np.random.randint(0, high=300, size=(2,)).tolist()

    cv2.circle(canvas, tuple(pt), radius, color)

cv2.imshow("Art", canvas)
cv2.waitKey(0)

38e09b01407a500f636d42e3081de0833b7d3c79
<mask token>

<mask token>
cv2.line(canvas, (0, 0), (300, 300), green)
cv2.line(canvas, (300, 0), (0, 300), red, 3)
cv2.rectangle(canvas, (10, 10), (60, 60), green)
cv2.rectangle(canvas, (50, 200), (200, 225), red, 5)
cv2.rectangle(canvas, (200, 50), (225, 125), blue, -1)
cv2.imshow('Canvas', canvas)
cv2.waitKey(0)
<mask token>
for r in range(0, 175, 25):
    cv2.circle(canvas, (centerX, centerY), r, white)
cv2.imshow('Circle', canvas)
cv2.waitKey(0)
<mask token>
for i in range(0, 25):
    radius = np.random.randint(5, high=200)
    color = np.random.randint(0, high=256, size=(3,)).tolist()
    pt = np.random.randint(0, high=300, size=(2,)).tolist()
    cv2.circle(canvas, tuple(pt), radius, color)
cv2.imshow('Art', canvas)
cv2.waitKey(0)

<mask token>
canvas = np.zeros((300, 300, 3), dtype='uint8')
green = 0, 255, 0
red = 0, 0, 255
blue = 255, 0, 0
white = 255, 255, 255
cv2.line(canvas, (0, 0), (300, 300), green)
cv2.line(canvas, (300, 0), (0, 300), red, 3)
cv2.rectangle(canvas, (10, 10), (60, 60), green)
cv2.rectangle(canvas, (50, 200), (200, 225), red, 5)
cv2.rectangle(canvas, (200, 50), (225, 125), blue, -1)
cv2.imshow('Canvas', canvas)
cv2.waitKey(0)
canvas = np.zeros((300, 300, 3), dtype='uint8')
centerX, centerY = canvas.shape[1] // 2, canvas.shape[0] // 2
for r in range(0, 175, 25):
    cv2.circle(canvas, (centerX, centerY), r, white)
cv2.imshow('Circle', canvas)
cv2.waitKey(0)
canvas = np.zeros((300, 300, 3), dtype='uint8')
for i in range(0, 25):
    radius = np.random.randint(5, high=200)
    color = np.random.randint(0, high=256, size=(3,)).tolist()
    pt = np.random.randint(0, high=300, size=(2,)).tolist()
    cv2.circle(canvas, tuple(pt), radius, color)
cv2.imshow('Art', canvas)
cv2.waitKey(0)

import numpy as np
import cv2
canvas = np.zeros((300, 300, 3), dtype='uint8')
green = 0, 255, 0
red = 0, 0, 255
blue = 255, 0, 0
white = 255, 255, 255
cv2.line(canvas, (0, 0), (300, 300), green)
cv2.line(canvas, (300, 0), (0, 300), red, 3)
cv2.rectangle(canvas, (10, 10), (60, 60), green)
cv2.rectangle(canvas, (50, 200), (200, 225), red, 5)
cv2.rectangle(canvas, (200, 50), (225, 125), blue, -1)
cv2.imshow('Canvas', canvas)
cv2.waitKey(0)
canvas = np.zeros((300, 300, 3), dtype='uint8')
centerX, centerY = canvas.shape[1] // 2, canvas.shape[0] // 2
for r in range(0, 175, 25):
    cv2.circle(canvas, (centerX, centerY), r, white)
cv2.imshow('Circle', canvas)
cv2.waitKey(0)
canvas = np.zeros((300, 300, 3), dtype='uint8')
for i in range(0, 25):
    radius = np.random.randint(5, high=200)
    color = np.random.randint(0, high=256, size=(3,)).tolist()
    pt = np.random.randint(0, high=300, size=(2,)).tolist()
    cv2.circle(canvas, tuple(pt), radius, color)
cv2.imshow('Art', canvas)
cv2.waitKey(0)

import numpy as np
import cv2

canvas = np.zeros((300, 300, 3), dtype="uint8")
green = (0, 255, 0)
red = (0, 0, 255)
blue = (255, 0, 0)
white = (255, 255, 255)

cv2.line(canvas, (0,0), (300, 300), green) # img, start, end, color
cv2.line(canvas, (300, 0), (0, 300), red, 3) # last parameter is thickness

cv2.rectangle(canvas, (10, 10), (60, 60), green)
cv2.rectangle(canvas, (50, 200), (200, 225), red, 5)
cv2.rectangle(canvas, (200, 50), (225, 125), blue, -1)

cv2.imshow("Canvas", canvas)
cv2.waitKey(0)

canvas = np.zeros((300, 300, 3), dtype="uint8")
(centerX, centerY) = (canvas.shape[1]//2, canvas.shape[0]//2)
for r in range(0, 175, 25):
    cv2.circle(canvas, (centerX, centerY), r, white)


cv2.imshow("Circle", canvas)
cv2.waitKey(0)


canvas = np.zeros((300, 300, 3), dtype="uint8")
for i in range(0, 25):
    radius = np.random.randint(5, high=200)
    color = np.random.randint(0, high=256, size=(3,)).tolist()
    pt = np.random.randint(0, high=300, size=(2,)).tolist()

    cv2.circle(canvas, tuple(pt), radius, color)

cv2.imshow("Art", canvas)
cv2.waitKey(0)
