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
I really enjoyed making this sketch in #py5 as it gave me a chance to learn how to alter the shape of curves based on noise. I've done it before with lines, but curves considerably upped the complexity
First, finding the length of each curve segment, then finding each point along that curve, and then altering its position based on the curve tangent and noise,
I had a lot of fun, and learned quite a bit. That's what #creativeCoding is all about
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 #Pythonteaching 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 :(
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
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:
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á!