Skip to content

Instantly share code, notes, and snippets.

View ondrejzacha's full-sized avatar

Ondrej Zacha ondrejzacha

  • Amsterdam
View GitHub Profile
@ondrejzacha
ondrejzacha / noisy_circles1.pyde
Created February 27, 2019 22:29
noisy circles 1
WIDTH = 1200
HEIGHT = 800
NO_POINTS = 7
def setup():
# size(WIDTH, HEIGHT)
fullScreen()
frameRate(15)
# noLoop()
NO_POINTS = 5
def setup():
fullScreen()
frameRate(15)
background(0)
def draw():
# background(255)
stroke(255, 10)
NO_POINTS = 9
def setup():
fullScreen()
frameRate(15)
background(0)
def draw():
background(0)
stroke(255)
NO_POINTS = 7
def setup():
fullScreen()
frameRate(15)
background(0)
# strokeWeight()
def draw():
background(0)
@ondrejzacha
ondrejzacha / image_rasterization.pyde
Last active March 18, 2019 11:58
image rasterization with lines
FG = color(17, 17, 17, 10) # foreground color
BG = "#f3f3f3" # background color
WIDTH = 1000
ASPECT_RATIO = 0.666 # !!! copy from console
TOTAL_FRAMES = 10 # higher means darker & covering higher percentage of picture
LINE_LENGTH = 65 # higher means more blurry & darker
GRID_DISTANCE = 15 # if GRID_DISTANCE >> LINE_LENGTH, picture may be incomplete; higher -> lighter