@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

Tomorrow (Saturday) at PyCon US 2024: Creative Coding with py5, the Python version of Processing, at 4:15 in Room 301-305

https://us.pycon.org/2024/schedule/presentation/167/

#pycon #pycon2024 #py5 #processing

py5coding, to random
@py5coding@fosstodon.org avatar

I'm pleased to report that my #py5 #pycon proposal has moved from "standby" to "scheduled" for Saturday, May 18th, 2024 at 4:15 p.m. The opportunity to present py5 at PyCon is a dream come true!

https://us.pycon.org/2024/schedule/presentation/167/

This, in addition to @villares 's py5 tutorial on Thursday the 16th:

https://us.pycon.org/2024/schedule/presentation/116/

If you will be at PyCon in Pittsburgh later this month, please come see both of us talk about the amazing things you can do with py5!

py5coding, to random
@py5coding@fosstodon.org avatar

Here's an important notice for MacOS users w/ Apple Silicon (M1, M2, M3):

https://blogs.oracle.com/java/post/java-on-macos-14-4

tl;dr: skip upgrading to macOS 14.4 and update to macOS 14.4.1 instead.

This notice came from the Discourse:

https://discourse.processing.org/t/important-notice-macos-sonoma-14-4-and-processing-4-compatibility/44232

py5coding, to random
@py5coding@fosstodon.org avatar

Everyone! version 0.10.1a1 was released earlier today. This is a small release with a few new features & bug fixes. Read more about it here:

https://ixora.io/blog/new-release-0101a1/

And an exciting announcement: a gallery show at Wasserman Projects will feature two digital works, both using in mode. If you are near Detroit, MI (USA), please go visit!

https://wassermanprojects.com/spring2024/

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

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

py5coding, to random
@py5coding@fosstodon.org avatar

Many thanks for Nick McIntyre (https://github.com/nickmcintyre), an artist, writer, and teacher in the US, for becoming py5coding's first GitHub sponsor!! Very appreciative of Nick's support for future #py5 development.

If you'd also like to sponsor #py5, the link is here:

https://github.com/sponsors/py5coding

No pressure though to become a sponsor though! If you have bills to pay or are in any way struggling, don't worry about it. Thank you, everyone, for using #py5! Your support means a lot.

py5coding, to random
@py5coding@fosstodon.org avatar

The latest version of works with objects, implicitly converting them to Py5Shape objects & drawing them to the screen:

from shapely import Polygon

size(999,999)
stroke_weight(19)
p=Polygon([[9,9], [9,990], [990,990], [990,9]])
for _ in range(8):
shape(p:=p.buffer(-50, single_sided=True))

py5coding, to random
@py5coding@fosstodon.org avatar

There's now a #py5 category in the #processing discourse!

https://discourse.processing.org/c/28

Let's start using it to talk about #py5 and share what we are working on!

py5coding, to random
@py5coding@fosstodon.org avatar

#py5 lets you manipulate pixels with np_pixels[], a #numpy array with 3 dimensions, much like how you'd work with pixels using other Python tools.

size(999,999)
background('w')
load_np_pixels()
for _ in range(99):
x,y,c=random_int(900), random_int(900), random_int(1,3)
np_pixels[x:x+99,y:y+99,c]=0
update_np_pixels()

#genuary #genuary4 #processing

py5coding, to python
@py5coding@fosstodon.org avatar

#py5's new to_pil() method returns the frame as a PIL Image, making it easy to implement a Droste effect with a loop:

size(1024, 1024)
background('w')
image(Image.open('logo.png'), 512, 512)
for _ in range(9):
image(to_pil().resize((595, 595)), 0, 0)

#genuary #genuary3 #processing #python #art

py5coding, to random
@py5coding@fosstodon.org avatar

This week's #py5 release added a new color mode based on matplotlib's colormaps, adding to the existing RGB and HSB modes:

size(999,999)  
color_mode(CMAP,mpl.colormaps['jet'])  
stroke_weight(99)  
for _ in range(999):  
 stroke(random(),99)  
 point(random(999), random(999))  

#Genuary #processing #Genuary2

py5coding, to random
@py5coding@fosstodon.org avatar

A new version of #py5 is out! A major upgrade with exciting features for trimesh, shapely, matplotlib, & more!

https://ixora.io/blog/new-release-0100a0/

Despite having COVID I got the release out before the year ended...but most of you are probably in NYE mode already so look for more #py5 posts in the year demoing what's new!

py5coding, to random
@py5coding@fosstodon.org avatar

Happy Holidays, from py5 !

Made with and

image/jpeg
image/jpeg

py5coding, to random
@py5coding@fosstodon.org avatar

Folks: I continue to inch towards the next release and have most of the new documentation written. There are some challenges w/ holiday-related responsibilities and also my dad is having some health problems, but I'm still optimistic the release will be done by the end of the year. Stay tuned!

py5coding, to random
@py5coding@fosstodon.org avatar

release update: I've only written about 20% of the new feature documentation needed for the next release, so I'm way behind where I wanted to be by this date. Bear with me, I'll be doing a lot of writing this weekend and will get this release out as soon as I can.

py5coding, to random
@py5coding@fosstodon.org avatar

bug 643 (https://github.com/processing/processing4/issues/643) has been closed, and will now move forward with an exciting new feature providing integrations with the Python libraries shapely and trimesh. Stay tuned!

py5coding, to genart
@py5coding@fosstodon.org avatar

Thank you, @TomLarrow , for your #py5 themed #generativeart creation, now the new banner image at the top of @py5coding 's Mastodon and (bird site) profile pages! Very appreciative of your enthusiasm for experimenting with #py5!

py5coding, to python
@py5coding@fosstodon.org avatar

Just added two new methods to_pil() and get_np_pixels() to the Sketch, Py5Graphics, and Py5Image classes in . The first will return a PIL Image object and the second will get pixels as a array. Both further the goal of further integrating py5 into the ecosystem.

py5coding, to random
@py5coding@fosstodon.org avatar

Version 0.9.1 of has been released! There's a new feature to support beginner coders' code imports, requested by @villares & @tabreturn a while ago and finally added to py5. Thanks for the great feature ideas! Read about the release here:

https://ixora.io/blog/new-release-091a1/

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!

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

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