Englisch
Avatar

Alexandre B A Villares
@villares

Making free and open-source educational resources

villares hat 1 Förderer.
Spenden   PayPal

Beschreibung

Hi!

I work as a technology and arts educator, and I develop free and open didactic materials, I also collaborate with free software projects. My main research interests are computational art procedures, generative design, creative coding and how to teach programming in visual contexts.

If you support me with your donations I can make more materials and collaborate more. If LiberaPay doesn't work well in your country or currency, try this PayPal donation link

from collections import deque  # a double-ended queue
import py5  # check out https://github.com/py5coding 

history = deque(maxlen=512)  # mouse dragged positions

def setup():   # py5 will call this once to set things up
    py5.size(600, 400)
    py5.no_stroke()
    py5.color_mode(py5.HSB)

def draw():   # py5 will call this in a loop
    py5.background(51)
    for i, (x, y) in enumerate(history):
        py5.fill(i / 2, 255, 255, 128)
        py5.circle(x, y, 8 + i / 16)
    if history:
        history.append(history.popleft())

def mouse_dragged():  # py5 will call this when you drag the mouse
    history.append((py5.mouse_x, py5.mouse_y))

def key_pressed():   # py5 will call this when a key is pressed
    history.clear()

py5.run_sketch()

Verknüpfte Konten

villares besitzt die folgenden Zugänge auf anderen Plattformen:

Repositorys

sketch-a-day Sterne 223 Diese Woche aktualisiert

One visual idea a day

pyp5js-gameboards Sterne 1 vor 2 Wochen aktualisiert

Examples for using pyp5js to make simple games

faded-parsons-visual Sterne 1 vor 1 Monat aktualisiert

Python Parsons Problems with Visual Results. Quebra-cabeças de Parsons em Python com resultado visual

material-aulas Sterne 97 vor 2 Monaten aktualisiert

Material para ensino introdutório de programação com Python em um contexto visual

python-visual-context Sterne 0 vor 3 Monaten aktualisiert

Learn Python by drawing things

desenho-sem-argumentos Sterne 2 vor 3 Monaten aktualisiert

material para o zine desenho()

Resources-for-teaching-programming Sterne 98 vor 3 Monaten aktualisiert

Resources for teaching programming for artists, designers and architects

Paper-objects-with-Processing-and-Python Sterne 14 vor 10 Monaten aktualisiert

Studies in digital fabrication

lousa-magica Sterne 8 vor 1 Jahr aktualisiert

Lousa mágica e Lousa paramétrica são máquinas de desenhar com potenciômetros! (Processing + Arduino)

arc_tangents_and_bezier_studies Sterne 12 vor 1 Jahr aktualisiert

Code snipets for working with arc tangents and bezier aproximations, mostly on Processing

mestrado Sterne 3 vor 1 Jahr aktualisiert

Documentação do mestrado ATC FEC/Unicamp 2017-2019

pymunk-pinball-paulista Sterne 2 vor 2 Jahren aktualisiert

Förderer   Als CSV exportieren

villares hat 1 öffentlichen Spender.

Verlauf

villares ist vor 10 Monaten beigetreten.

villares gibt nicht an, wie viel sie über Liberapay erhalten.