boreal.py

Created by pikube

Created on October 26, 2019

429 Bytes

Générateur de fonds d’écran (style aurore boréale/dégradé multicolore), essayez boreal()


from math import *
import kandinsky as kan
import random
import cmath
def boreal():
  r=random.randint(0,255)
  g=random.randint(0,255)
  b=random.randint(0,255)
  posr=random.randint(0,1)
  posg=random.randint(0,1)
  print(r,g,b)
  for x in range(321):
    for y in range(222):
      kan.set_pixel(x,y,kan.color(int(255*(x+b)/(321+255)),int(255*(y+g)/(222+255)),int(255*(posr*x+posg*y+b)/(321+posr*255+posg*255))))

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.