@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.

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

@TomLarrow These are great!

Have you looked at py5's new color features? Among other things, you can use matplotlib colormaps for the colors. I think you'd get a lot of use out of it!

villares, to random
@villares@ciberlandia.pt avatar

AttributeError: py5 has no field or function named "brackground". Did you mean "background"?

py5coding,
@py5coding@fosstodon.org avatar

@villares those error messages are a nice feature. 😀

If anyone is interested, the implementation comes from a blog post by Peter Norvig on spelling:

https://norvig.com/spell-correct.html

TomLarrow, to genart
@TomLarrow@vis.social avatar

The chaos of life has finally slowed down enough that I could attempt some again. I started to build out some flow fields, but when I tried to add some visualizations to help me see how the flow fields would look before I moved particles through them, the resulting visualizations themselves were pretty cool, so they became the sketch

Happy Little Accidents

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

A dark green noise field that almost looks stitched
A black and offwhite noise field which displays similar sketching characteristics of the previous image, but also the distortion grid of the first image
A close up of the noise field this has almost a CRT scanline effect going on

py5coding,
@py5coding@fosstodon.org avatar

@TomLarrow these are great. Good to see your work again, Tom!

villares, to python Portuguese
@villares@pynews.com.br avatar
py5coding,
@py5coding@fosstodon.org avatar

@villares very nice combining trimesh and shapely!

villares, to genart Portuguese
@villares@ciberlandia.pt avatar
py5coding,
@py5coding@fosstodon.org avatar

@villares Can't wait!!!

villares, to python Portuguese
@villares@pynews.com.br avatar
py5coding,
@py5coding@fosstodon.org avatar

@villares Neat! 's shape intersection tools are powerful. Also, how convenient that can convert shapely shapes to Py5Shape objects.

I was about to ask about that disable_style() call but now I see you need it because your converted shapes are cached & you want it to adapt a new stroke color. An alternative approach is to use the shape object's set_stroke() method, but you'd have to rewrite some stuff. I'm not saying one way is better than another, just that there's another approach

villares, to python Portuguese
@villares@pynews.com.br avatar
py5coding,
@py5coding@fosstodon.org avatar

@villares good job! Next try this with arbitrary shapes using Shapely polygons

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

It looks like my " portable bundle" with and is working allright https://abav.lugaralgum.com/como-instalar-py5/index-EN.html

I wish someone would like to make an (I don't have the skills needed) and a package (I have a set of instructions to follow but no Mac nor Apple signing keys)

py5coding,
@py5coding@fosstodon.org avatar

@villares Good news!! Thank you for working on this.

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

Hi! Is there anyone here on OS that might like to test for me a new "bundled portable" + + 0.10.0a0 ?

https://www.dropbox.com/scl/fi/2mnhk1k1yj6ab55p02z6q/thonny-4-with-py5-100-windows-portable.zip?rlkey=0du7vkd2nn2etlwftqw69hq1t&dl=0

More info, and a link to a previous version of the bundle at: https://abav.lugaralgum.com/como-instalar-py5/index-EN.html

py5coding,
@py5coding@fosstodon.org avatar

@karlinfox @villares thank you for helping out!

FelipeSMBarros, to random Spanish
@FelipeSMBarros@mastodon.social avatar

playing with weather to explore possibilities... Not what I meant to do, but some how, surprised me

py5coding,
@py5coding@fosstodon.org avatar

@FelipeSMBarros keep experimenting!

villares, to python Portuguese
@villares@pynews.com.br avatar
py5coding,
@py5coding@fosstodon.org avatar

@villares great use of 's trimesh integration!

villares, (edited ) to genart
@villares@ciberlandia.pt avatar

Hey people... make my day, please help me find some patrons... At this point my has a single lonely patron 😭 https://liberapay.com/villares

In order to sustainably translate, review and grow 80+ pages from my current Portuguese-language material-aulas (Python + py5) materials I think I'll need at least 10 patrons.

py5coding,
@py5coding@fosstodon.org avatar

@villares Please sponsor
@villares if you can! He writes excellent educational content for creative coding!

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

Quem estiver em #SãoPaulo na segunda-feira de Carnaval, 15h vai rolar um mini-Carnahacking no #GaroHackerClube #hackerspace https://garoa.net.br/wiki/Carnahacking_2024

py5coding,
@py5coding@fosstodon.org avatar

@villares how festive! really nice

py5coding,
@py5coding@fosstodon.org avatar

@villares right! and by doing that you can simplify the Sketch by working in 2 dimensions

py5coding, to github
@py5coding@fosstodon.org avatar

Thank you to artist Alec Danaher (https://github.com/adanaher, https://www.instagram.com/alecdanaherart/) for becoming a #github sponsor of #py5! Very grateful for your support of this #opensource project!

https://github.com/sponsors/py5coding

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

Tou muito impactado, mais de mil pessoas inscritas em 15 dias... 100% de feedback positivo (e os exercícios que as pessoas postam no fórum, demais de legais) https://domestika.org/pt/courses/4307-design-com-python-programacao-para-um-contexto-visual/a_b_a_villares

py5coding,
@py5coding@fosstodon.org avatar

@villares I thrilled by your success!

py5coding, (edited ) to github
@py5coding@fosstodon.org avatar

Many thanks to Érico Andrei (@ericof, https://github.com/ericof) for becoming a #github sponsor of #py5! Thank you so much for your support of this #opensource #processing project!

https://github.com/sponsors/py5coding

py5coding, to python
@py5coding@fosstodon.org avatar

New #py5 feature: an update() function that gets called before each call to draw(), and can execute during the time between one call to draw() and the next that the #Python interpreter would otherwise be idle. For many Sketches, this is an easy way to provide a small performance improvement.

Please read about it and share your thoughts!

https://github.com/py5coding/py5generator/discussions/408

py5coding, to random
@py5coding@fosstodon.org avatar

Creating 10_000 of something is easy with #py5's vectorized methods. Here, the vertices() and set_strokes() methods are used to quickly create and color 10_000 points.

size(999, 999, P2D)
color_mode(CMAP, "hot")
stroke_weight(32)
s = create_shape()
with s.begin_shape(POINTS):
s.vertices(999 * np.random.rand(N:=10000, 2))
s.set_strokes(color(x / N, 64)for x in range(N))
shape(s)

#processing #genuary #genuary16

kevinbowen, to python
@kevinbowen@fosstodon.org avatar

Ending up going down a silly, little rat-hole today setting up a project to play with #py5

Seems like py5 won't play nice with #pdm It does, however, work fine with poetry. 🤔

I had been taking pdm for a test drive this month; but, at least for some graphics tinkering I will use poetry for dependency management. Unless I can figure out what the bug is between py5 & pdm. Yay!

#python

py5coding,
@py5coding@fosstodon.org avatar

@kevinbowen @diazona please keep me in the loop, and also please post the pretty pictures you make with #py5 !

py5coding,
@py5coding@fosstodon.org avatar

@diazona @kevinbowen That's a good point. I like your logic here. Now I'm eager to find out what the actual cause of this problem is

py5coding,
@py5coding@fosstodon.org avatar

@diazona @kevinbowen is this problem occurring on MacOS? The py5 library will install an extra MacOS-only library for some objective c support

py5coding,
@py5coding@fosstodon.org avatar

@diazona @kevinbowen So the problem package is pyobjc. Could the issue be in here?

https://github.com/ronaldoussoren/pyobjc/blob/master/pyobjc/setup.py

The framework_requires() function might be relevant to this specific error.

py5coding,
@py5coding@fosstodon.org avatar

@diazona @kevinbowen if you could, please mention me on github with @hx2A. I'd like to follow the progress here also

py5coding,
@py5coding@fosstodon.org avatar

@diazona @kevinbowen @hx2A I just hit the subscribe button. Thank you! I will follow along as this develops. Thank you so much for opening an issue with such detailed information about the problem.

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