bigswim.py

Created by schraf

Created on August 28, 2022

238 Bytes

Source : http://www.peda.com/grafeq/gallery.html

Chrome : https://my.numworks.com/python/schraf/chrome

Sphère : https://my.numworks.com/python/schraf/sphere

Margarita : https://my.numworks.com/python/schraf/margarita

Threesome : https://my.numworks.com/python/schraf/threesome

Arachnid : https://my.numworks.com/python/schraf/arachnid


from math import *
from kandinsky import *

for c in range(320):
 for l in range(222):
  x=(c-160)/10
  y=(l-111)/10
  g=sin(sin(x*(sin(y)-cos(x))))
  d=cos(cos(y*(cos(x)-sin(y))))
  if g > d: set_pixel(c, 222 - l, (0,0,0))