#pyp5js

danzindanzin
2024-12-18

Here's a demo working with stars in .

While the trigonometry might not be obvious at first (it isn't to me), I hope the code is clear enough to allow anyone to tinker with it.

Big thanks to @villares@ciberlandia.pt @villares@pynews.com.br who taught me everything I know about . You really should consider supporting him, using his freely available teaching materials and following him.

python-fiddle.com/tools/pyp5js was used to write this.

Code: gist.github.com/devdanzin/0716

A geometric pattern created by a star that rotates, moves left to right and back, contracts and expands. The pattern has many points forming an almost circular shape, and it's possible to discern that each point was the point of a star that was drawn before. This image is tan with black lines delineating the old star shapes, all against a black background. Near the center there is a small star with a circle at its center and chubby points, because that's how they get when the star contracts. A multicolored geometric pattern created by a star that rotates, moves left to right and back, contracts, expands and changes colors. The pattern has many points forming an almost circular shape with visible layering, and it's possible to discern that each point was the point of a star that was drawn before. This image has many colors as the stars randomly change colors, all set against a black background. Near the center there is a medium star with a circle at its center and medium points, because its in the middle of the expansion-contraction cycle.
Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-10-02

Bom gente, vou aproveitar #tersoftware para divulgar softwares educacionais livres de minha própria autoria!

Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-09-08

Would you like to try a #ParsonsProblems programming puzzle? Arrange the blocks to produce a chequered pattern! abav.lugaralgum.com/faded-pars
#py5 #pyp5js #Python

screen capture of the puzze page with a checkered 8x8 pattern on the left and some Python lines inside gray blocks to be arrangend on a yellow area on the right.
Jörg Kantelkantel
2024-07-27
Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-07-22

Today I procrastinated terribly on working on my PhD thesis... I'm feeling awfully frustrated.

But I'll should not cry in desperation. I know I can do useful stuff, I have fixed my page with an interactive recursion example...

abav.lugaralgum.com/material-a

... the problem is... it's yak shaving.
#Python #py5 #pyp5js

Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-06-22
um grade de células quadradas em um fundo cinza, no canto um jacaré, uma torre de xadrez vermelha, um triângulo azul apontando para a direita, um quadrado verde, como peças em um tabuleiro de um jogo incompreensível.
No canto superior direito as palavras "click here";
Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-04-30

Today I worked a bit on my #ParsonsProblems with visual results tool...

I made a new puzzle: abav.lugaralgum.com/faded-pars

Maybe it's not a very good one, but the fun, promising, idea was to make some annotated #py5 imported mode code that would generate the YAML for the puzzle runner and the solution image for the description, so that I have a "single truth source" for the problem: github.com/villares/faded-pars

#Python #Education #pyp5js #Processing

Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-04-10

Para quem quiser experimentar esse exemplo das partículas no #pyp5js ... (a URL é gigante pois ela encoda o código do exemplo todo) abav.lugaralgum.com/pyp5js/py5

Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-02-28
Screenshot of https://us.pycon.org/2024/schedule/tutorials/ highlighting my tutorial
Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-01-19
Alexandre B A Villares 🐍villares@ciberlandia.pt
2024-01-08

#genuary7 #Processing #Python #py5 click to see it running on #pyp5js -> abav.lugaralgum.com/pyp5js/py5

Alexandre B A Villares 🐍villares@ciberlandia.pt
2023-10-17

EN: I have just finished translating both my zine/poster editions of desenho() (desenho.lugaralgum.com) into English and the 2019 one was ported form Processing Python mode to #py5 (also #Processing + #Python, get to know more at abav.lugaralgum.com/como-insta )

You can download them both from villares.gumroad.com

If 10 more people sign up for a recurring donation at Gumroad I'll make a new zine this year. I was thinking about making it available for free at the Brazilian PyCon, Python Brasil, but I'm afraid it is too late now.

#CreativeCoding #FreeCAD #pyp5js

PT: Acabei de traduzir as duas edições do meu zine/pôster desenho() (desenho.lugaralgum.com) e portei a versão de 2019 de Processing modo Python para a nova biblioteca py5 que eu estou usando (também é Processing + Python, saiba mais em abav.lugaralgum.com/como-insta

Você pode baixar ambas em villares.gumroad.com

Se mais 10 pessoas assinarem a contribuição recorrente no Gumroad eu vou fazer mais um número este ano Queria fazer um número para ser distribuído gratuitamente na Python Brasil 2023, mas acho que não vai dar tempo.

#ProgramaçãoCriativa

image of the 2 page zine desenho() #1_2022, left side is a poster, right side has a recursive hex drawing an info about Thonny, py5, pyp5js and FreeCAD.
Alexandre B A Villares 🐍villares@ciberlandia.pt
2023-07-30

Ten years ago a team from the #Processing Foundation made a very cool interactive video tutorial:

-> hello.processing.org

The tech infrastructure is available here:
github.com/processing/Processi

From time to time I think I'd like to fork it and make a #py5 (Processing + Python) version using #pyp5js but I'd need help, because it would be a lot of work for a single overworked me.

#CreativeCoding #HourOfCode #Teaching

Alexandre B A Villares 🐍villares@ciberlandia.pt
2023-07-22

@gcampax it is entirely my fault, I didn't post it as reply. Your research sounds very interesting. I'm trying to work on approaches for teaching programming to architects, designers and visual artists. I've been involved with the #Processing community for quite a while and I like to teach with a combination of #Python and Processing using a library called #py5 and sometimes on the browser with #pyp5js.

Alexandre B A Villares 🐍villares@ciberlandia.pt
2023-07-17

Primeira tentativa de #ParsonsProblems com resultado visual, graças ajuda do incrível @lucianoratamero, e sobre os ombros da gigante educadora @pamelafox :D

A first attempt at Parsons Puzzles with visual results, thanks to incredible Luciano Ratamero and standing in the shoulders of giant educator Pamela Fox...

abav.lugaralgum.com/faded-pars

#Python #Processing #py5 #pyp5js

Alexandre B A Villares 🐍villares@ciberlandia.pt
2023-07-04

@Timteachesmath yes, there are some projects, check out github.com/villares/Resources-

I'm using #pyp5js, #pyodide based, in class, I have a fork/hack that makes it have the py5 function & variable names: abav.lugaralgum.com/pyp5js/py5

And proceso.cc might be the next great option...

Alexandre B A Villares 🐍villares@ciberlandia.pt
2023-03-30

Trying to reproduce a Vera Molnar print
tinyurl.com/moldura-molnar
#Processing #Python #pyp5js #py5

Client Info

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