#py5

Alexandre B A Villaresvillares@pynews.com.br
2025-12-15

I'm back to this simple "graph" idea from 2021, re-doing it from scratch... it provides endless fun/explorations. In 2022 I think I did so much stuff with this... Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding

A graph-like structure of black lines connecting nodes, growing outwards from the center of the gray canvas.
Alexandre B A Villares 🐍villares@ciberlandia.pt
2025-12-15

#Processing & #py5 tip:
Remember the shapes you put on draw() will be redrawn over and over, and if they don't move (leaving a trail) you might want to either clean each frame with background(...), or stop the draw loop (noLoop() in Processing or no_loop() in py5), otherwise you kill the anti-aliasing of the lines/strokes/edges!

I'm posting this tip because even using these tools for years and knowing this, today I briefly thought something was odd/broken because my lines were ugly with no "smoothing" :D

import py5

def setup():
py5.size(200, 200)
py5.stroke_weight(2)
# a line that will drawn once only
py5.line(10, 10, 190, 90)

def draw():
# you could clean the frame here with background(200)
# this other line will be redrawn many times
py5.line(10, 110, 190, 190)

def key_pressed():
py5.save('out.png')

py5.run_sketch()

two black lines on a gray background:
the top one has anti-aliasing and the bottom one has not.
Alexandre B A Villares 🐍villares@ciberlandia.pt
2025-12-11

Ano que vem no MAM-SP vou dar dois cursos online, o que eu dei ano passado vai ser em abril, mas agora em janeiro eu vou dar um outro curso mais curtinho com 3 encontros:

mam.org.br/curso/arte-computac

#py5 #programaçãoCriativa #arteComputacional #Python

imagem de divulgação o curso no MAM, na parte esquerda tem o texto:
mam cursos
arte computacional: produzindo imagens reticuladas
com Alexandre Villares

Na parte da direita uma imagem feita com uma grade de quadradinhos coloridos sobre um fundo cinza claro (gerada a partir de uma foto de um espaço expositivo do MAM)

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst