TomLarrow, to genart
@TomLarrow@vis.social avatar

Tonight's #CreativeCoding revolved around playing with Cartesian and Polar coordinates.

The object on the left was drawn in the traditional Cartesian coordinates. Then the values in the graphics array were deliberately misinterpreted as being written in Polar coordinates. So the value for x became the radius, and the value for y theta

Then r and theta were converted back to Cartesian so they could be displayed by #Py5 resulting in the shape on the right

Code: https://codeberg.org/TomLarrow/creative-coding-experiments/src/branch/main/x_0086

A series of triangles on the left, mostly red, tan, and some blue, that for some reason looks like a low poly lobster, gets bent into a curved version of the shape on the right
A very complex shape of many triangles in blue green and tan on the left become almost a flower looking shape on the right
A long red green, tan and white snake of triangles on the left, becomes a big swirl of arcing shapes of the same color on the right

TomLarrow, to genart
@TomLarrow@vis.social avatar
villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar

Do you contribute to Free/Libre Open Source #FLOSS projects, with work or money? If you do, which one?

If you don't, consider doing it. I could really use some support so I can work on my open #Python teaching materials and continue working on #py5.

I love the work that I do, the teaching and these contributions to "the commons", but things have been terrible economically for me this year and my anxiety is going through the roof :(

You can support me with a small one time or recurring donation at this PayPal link or https://gumroad.com/villares

Otherwise, I can teach introductory Python and talk creative coding in private classes or groups.

TomLarrow, to genart
@TomLarrow@vis.social avatar
TomLarrow, (edited ) to genart
@TomLarrow@vis.social avatar

Today's is actually yesterday's Creative Coding, but the first image here took nearly 24 hours to render, so I'm posting it tonight.

Inset circle packing using the Shapely library to help determine the radius of each circle to draw in

As fun as it was to wait in anticipation of the really detailed one, I prefer the simpler ones as you can see the pattern more clearly

(these are hard to see the pattern until you zoom in)

Code: https://codeberg.org/TomLarrow/creative-coding-experiments/src/branch/main/x_0096

villares, to python Portuguese
@villares@pynews.com.br avatar
TomLarrow, to genart
@TomLarrow@vis.social avatar

Did a little bit of #creativeCoding today. I started to look at the new integrations available in #py5, but my brain rebelled claiming to be on break and refusing to learn something new while on break

So I took a number of things I've done in previous sketches, tossed them in a blender, and made something new

I love how much variety it generates

Code: https://codeberg.org/TomLarrow/creative-coding-experiments/src/branch/main/x_0100/x_0124

Dynamic swooshes of color, sort of like the Nike logo, bent twisted, rotated and flowing into adjacent copies. Each with a different color
An almost rigid pattern of triange-ish shapes that sort of form star like patterns.
it looks like hand drawn cells bumping into each other, Each one outlined in a different color

villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@ciberlandia.pt avatar

Vou dar um curso introdutório de programação para artistas e designers com 8 "encontros", online pelo Platô...

https://plato.studio/Proc

Não tem pré-requisitos (não precisa nem ser designer nem saber programar).

Quem sabe vocês conhecem alguém que iria se interessar?

#Processing #Python #py5 #ProgramaçãoCriativa

villares, to saopaulo Portuguese
@villares@pynews.com.br avatar
villares, (edited ) to python Portuguese
@villares@pynews.com.br avatar

axiom = 'X'
rules = {
'X': '[-X][+X][+FX]-FXB',
'F': 'FF',
}
angle = 25 # degrees
iterations = 6

F -> forward step

B -> blue circle

https://github.com/villares/sketch-a-day/blob/main/2023/sketch_2023_10_07/sketch_2023_10_07.py
#Processing #LSystem #Python #py5

villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to windows
@villares@ciberlandia.pt avatar

Dear Fedi-friends, if you are on #Windows and like #Python or you'd like to learn Python, I have just updated my #portable #ThonnyIDE on a zip, that comes with #py5 and thonny-py5mode plug-in, for drawing wonderful stuff, and #pymunk for simulating #2DPhysics:

https://www.dropbox.com/scl/fi/ytyzpuyjmtmc5is6dwq3b/thonny-4-with-py5-091-windows-portable.zip?rlkey=ff5kxmyng4ebr1faglaej9zou&dl=0

If it doesn't work for you, or if you are on #MacOS or #Linux, you can follow the installation instructions at https://py5coding.org or maybe these at https://abav.lugaralgum.com/como-instalar-py5/index-EN.html

villares, to python Portuguese
@villares@ciberlandia.pt avatar

Gente, foi lançado hoje meu curso na Domestika! É uma introdução à programação criativa com Python e design gráfico para fazer "pôsters gerativos".

Este é o meu link especial:
https://www.domestika.org/pt/courses/4307-design-com-python-programacao-para-um-contexto-visual/a_b_a_villares

E tem um cupom de 15% de desconto nos 15 primeiros dias do lançamento: A_B_A_VILLARES-15LAUNCH

Agradeço se compartilharem!
#Processing #Python #py5 #ProgramaçãoCriativa

villares, to python Portuguese
@villares@pynews.com.br avatar
ericof, to sketch Portuguese
@ericof@pynews.com.br avatar
villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar

Um pouco de ângulos, com seno, cosseno e arco tangente <- link para a página completa com as demonstrações e código

Seno e cosseno são muito úteis para fazer animações cíclicas, é muito fácil usar a contagem pronta dos quadros oferecida pelo py5, frame_count como se fosse um ângulo em graus, converta em radianos e voi-lá!

#Processing #Python #py5

villares, to python Portuguese
@villares@pynews.com.br avatar
TomLarrow, to genart
@TomLarrow@vis.social avatar
ericof, to sketch Portuguese
@ericof@pynews.com.br avatar
ericof, to sketch Portuguese
@ericof@pynews.com.br avatar
ericof, to sketch Portuguese
@ericof@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
TomLarrow, to genart
@TomLarrow@vis.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines