mx_dm_01.py

Created by cent20

Created on September 05, 2024

342 Bytes


from math import *
from kandinsky import *
from random import *

N, S, I = 42, 42, 42 
x_rect = 6
y_rect = 4
x_max = 42
y_max = 42

R = 42
G = 242
B = 142

for x in range(x_max):
  R = 42*x
  #
  #
  for y in range(y_max):
    G = y**42
    B = 42*randint(0, 6)
    #
    fill_rect(x*x_rect, y*y_rect, x_rect, y_rect, (R,G,B))

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.