@py5coding@fosstodon.org
@py5coding@fosstodon.org avatar

py5coding

@py5coding@fosstodon.org

Official Mastodon account of the #py5 project.

py5 is a new version of #processing for #python.

Created and maintained by https://mastodon.art/@hx2A and the py5 community.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

py5coding, to random
@py5coding@fosstodon.org avatar

The fixing and testing for the next release are now complete...if all goes according to plan, will do a release this weekend!

villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar

Próxima terça na : depravação, discos voadores e com + ()

py5coding,
@py5coding@fosstodon.org avatar

@villares I can tell from the picture this is going to be a lot of fun!

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

py5coding,
@py5coding@fosstodon.org avatar

@TomLarrow these are great!

Did you know that Py5Vector can help you with polar <=> cartesian conversions? There are methods to set or get a vector's heading and magnitude.

https://py5coding.org/reference/py5vector.html

TomLarrow, to genart
@TomLarrow@vis.social avatar
py5coding,
@py5coding@fosstodon.org avatar

@TomLarrow very creative process!

py5coding, to random
@py5coding@fosstodon.org avatar

Started preparing a new release and found a bug. Release testing is important! Happily this is an easy fix. Will delay the release till next weekend though...

TomLarrow, to genart
@TomLarrow@vis.social avatar
py5coding,
@py5coding@fosstodon.org avatar

@TomLarrow these have a neat aesthetic!

villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar

@Timteachesmath Sir, do you have a minute to hear the word of our lord Processing + Python that came amongst us as py5coding.org ?

Check out https://abav.lugaralgum.com/como-instalar-py5/index-EN.html

py5coding,
@py5coding@fosstodon.org avatar

@Timteachesmath @villares py5 does work well in Jupyter Notebooks and you can use it over the web using JupyterHub servers such as mybinder.org.

py5coding, to random
@py5coding@fosstodon.org avatar

The documentation for the next release of #py5 is now complete...on track to release 0.9.1 by the middle of July. Stay tuned!

TomLarrow, to genart
@TomLarrow@vis.social avatar
py5coding,
@py5coding@fosstodon.org avatar

@TomLarrow Nice work!

Did you know that the begin_shape(), etc commands can be used as context managers? You can do this:

# Draw our quad  
with py5.begin_closed_shape(py5.QUAD):  
 py5.vertices(quads[i])

This works for Py5Graphics and Py5Shape objects as well.

Also, the Py5Graphics object has a lines() method that is analogous to the py5.vertices() method you used.

py5coding,
@py5coding@fosstodon.org avatar

@TomLarrow Indeed! Life is amazing that way

TomLarrow, to random
@TomLarrow@vis.social avatar

I was trying to work on some #CreativeCoding last night, but I wanted more control over noise generation than what I could find in the @py5coding libraries. So I wrote my own simple code to give me control over Open Simplex octaves, frequency, and persistence (after I learned what all those are) Same open simplex seed on all of these, just different variations of the other values on each #py5

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

The blobs a bit more cloudiness to them as other details appear. This is 12 octaves, with 0.3 persistence
A far more cloudy pattern. This is 12 octaves with 0.65 persistence and 2 frequency
A very splotchy black and white noise pattern. This is 12 octaves, 0.65 persistence and 4 frequency

py5coding,
@py5coding@fosstodon.org avatar

@TomLarrow your noise explorations are great! py5's noise documentation lists alternatives to its own functionality, some of which you might find useful:

https://py5coding.org/how_tos/generate_noise_values.html#other-noise-options

The last one, FastNoiseLite, might be particularly interesting to you:

https://github.com/Auburn/FastNoiseLite

py5coding, to python
@py5coding@fosstodon.org avatar

We are pleased to announce the completion of @lucky ’s project: introductory tutorials for & . Thank you, Zelle, for your hard work & dedication, and much gratitude for the Processing Foundation for your support & believing in py5!

This is a book's worth of content, and no small undertaking. If you printed out all 19 tutorials, you’d need +250 pages! An amazing contribution to the py5 community.

https://py5coding.org/tutorials/intro_to_py5_and_python.html

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines