mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.4K
active users

#pymunk

0 posts0 participants0 posts today
Alexandre B A Villares<p>Code at: <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_05_02" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_05_02</span></a><br>More sketch-a-day: <a href="https://abav.lugaralgum.com/sketch-a-day" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abav.lugaralgum.com/sketch-a-d</span><span class="invisible">ay</span></a><br>If you like this, support my work: <br><a href="https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paypal.com/donate/?hosted_butt</span><span class="invisible">on_id=5B4MZ78C9J724</span></a><br><a href="https://liberapay.com/Villares" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">liberapay.com/Villares</span><span class="invisible"></span></a><br><a href="https://wise.com/pay/me/alexandrev562" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wise.com/pay/me/alexandrev562</span><span class="invisible"></span></a> <a href="https://pynews.com.br/tags/Processing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Processing</span></a> <a href="https://pynews.com.br/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pynews.com.br/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://pynews.com.br/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a> <a href="https://pynews.com.br/tags/pymunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pymunk</span></a></p>
Alexandre B A Villares<p>WIP, anotrher <a href="https://pynews.com.br/tags/pymunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pymunk</span></a> study. Code at: <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_29" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_04_29</span></a><br>More sketch-a-day: <a href="https://abav.lugaralgum.com/sketch-a-day" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abav.lugaralgum.com/sketch-a-d</span><span class="invisible">ay</span></a><br>If you like this, support my work: <br><a href="https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paypal.com/donate/?hosted_butt</span><span class="invisible">on_id=5B4MZ78C9J724</span></a><br><a href="https://liberapay.com/Villares" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">liberapay.com/Villares</span><span class="invisible"></span></a><br><a href="https://wise.com/pay/me/alexandrev562" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wise.com/pay/me/alexandrev562</span><span class="invisible"></span></a> <a href="https://pynews.com.br/tags/Processing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Processing</span></a> <a href="https://pynews.com.br/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pynews.com.br/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://pynews.com.br/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a></p>
Alexandre B A Villares<p>A small Pymunk example for class. <br>No interactive segment-wall drawing for this one. And I can't use pickle for this sketch in imported mode :(<br>(see previous day for both features and the triangulated polys!) Code at: <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_28" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_04_28</span></a><br>More sketch-a-day: <a href="https://abav.lugaralgum.com/sketch-a-day" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abav.lugaralgum.com/sketch-a-d</span><span class="invisible">ay</span></a><br>If you like this, support my work: <br><a href="https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paypal.com/donate/?hosted_butt</span><span class="invisible">on_id=5B4MZ78C9J724</span></a><br><a href="https://liberapay.com/Villares" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">liberapay.com/Villares</span><span class="invisible"></span></a><br><a href="https://wise.com/pay/me/alexandrev562" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wise.com/pay/me/alexandrev562</span><span class="invisible"></span></a><br><a href="https://pynews.com.br/tags/pymunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pymunk</span></a> <a href="https://pynews.com.br/tags/Processing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Processing</span></a> <a href="https://pynews.com.br/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pynews.com.br/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://pynews.com.br/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a></p>
Alexandre B A Villares<p>Code at: <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_27" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_04_27</span></a><br>More sketch-a-day: <a href="https://abav.lugaralgum.com/sketch-a-day" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abav.lugaralgum.com/sketch-a-d</span><span class="invisible">ay</span></a><br>If you like this, support my work: <br><a href="https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paypal.com/donate/?hosted_butt</span><span class="invisible">on_id=5B4MZ78C9J724</span></a><br><a href="https://liberapay.com/Villares" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">liberapay.com/Villares</span><span class="invisible"></span></a><br><a href="https://wise.com/pay/me/alexandrev562" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wise.com/pay/me/alexandrev562</span><span class="invisible"></span></a><br><a href="https://pynews.com.br/tags/pymunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pymunk</span></a> <a href="https://pynews.com.br/tags/Processing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Processing</span></a> <a href="https://pynews.com.br/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pynews.com.br/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://pynews.com.br/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a></p>
Alexandre B A Villares 🐍<p>I want to simplify <a href="https://ciberlandia.pt/tags/pymunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pymunk</span></a> + <a href="https://ciberlandia.pt/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> use for my students but I struggle with finding good strategies… Pymunk has two types of (linked) objects for each simulated object: body and shape. For complex objects (like concave shapes) you can use more than one convex shape linked to the same body. In these cases I usually want to have an extra shape to draw and hide the triangulation.<br>I don't want to keep extra data structures to track the simulation objects to draw. I tried both extending and monkey patching either body or shape objects to be "drawable" so I can just iterate the native pymunk structures and ask stuff to draw themselves (would be nice, huh?), but there is always some snag. If I extend shape classes, I stumble on the complex objects with many shapes drawn with divisions. If I extend the Body class, the problem is static objects have shapes but share a virtual constant body, more of a flag, so I can't add anything to it, so back to keeping track of a separate list of static shapes… Then performance &amp; serialization issues, I want to be able to easily pickle simulations, but if I add Py5Shape objects to the extended/modified classes they become unpickable... <br>I have bigger fishes to fry right now (the paralyzing PhD) but this is something I would like to pair with someone more experienced to work on.</p>
Alexandre B A Villares<p>Code at: <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_26" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_04_26</span></a><br>More sketch-a-day: <a href="https://abav.lugaralgum.com/sketch-a-day" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abav.lugaralgum.com/sketch-a-d</span><span class="invisible">ay</span></a><br>If you like this, support my work: <br><a href="https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paypal.com/donate/?hosted_butt</span><span class="invisible">on_id=5B4MZ78C9J724</span></a><br><a href="https://liberapay.com/Villares" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">liberapay.com/Villares</span><span class="invisible"></span></a><br><a href="https://wise.com/pay/me/alexandrev562" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wise.com/pay/me/alexandrev562</span><span class="invisible"></span></a><br><a href="https://pynews.com.br/tags/pymunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pymunk</span></a> <a href="https://pynews.com.br/tags/Processing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Processing</span></a> <a href="https://pynews.com.br/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pynews.com.br/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://pynews.com.br/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a></p>
Alexandre B A Villares<p>Code at: <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_24" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_04_24</span></a><br>More sketch-a-day: <a href="https://abav.lugaralgum.com/sketch-a-day" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abav.lugaralgum.com/sketch-a-d</span><span class="invisible">ay</span></a><br>If you like this, support my work: <br><a href="https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paypal.com/donate/?hosted_butt</span><span class="invisible">on_id=5B4MZ78C9J724</span></a><br><a href="https://liberapay.com/Villares" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">liberapay.com/Villares</span><span class="invisible"></span></a><br><a href="https://wise.com/pay/me/alexandrev562" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wise.com/pay/me/alexandrev562</span><span class="invisible"></span></a> <a href="https://pynews.com.br/tags/Processing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Processing</span></a> <a href="https://pynews.com.br/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pynews.com.br/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://pynews.com.br/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a><br><a href="https://pynews.com.br/tags/pymunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pymunk</span></a></p>
Alexandre B A Villares 🐍<p>compare and take your own conclusions!</p><p>PyMunk with py5 <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_23" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_04_23</span></a></p><p>PyMunk with pygame <a href="https://github.com/viblo/pymunk/blob/master/pymunk/examples/balls_and_lines.py" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/viblo/pymunk/blob/m</span><span class="invisible">aster/pymunk/examples/balls_and_lines.py</span></a></p><p><a href="https://ciberlandia.pt/tags/PyMunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyMunk</span></a> <a href="https://ciberlandia.pt/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://ciberlandia.pt/tags/2Dphysics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>2Dphysics</span></a> <a href="https://ciberlandia.pt/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a> <a href="https://ciberlandia.pt/tags/pygame" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pygame</span></a> <a href="https://ciberlandia.pt/tags/pygamece" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pygamece</span></a> <a href="https://ciberlandia.pt/tags/collisions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>collisions</span></a></p>
Alexandre B A Villares<p>Code at: <a href="https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_04_23" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/villares/sketch-a-d</span><span class="invisible">ay/tree/main/2025/sketch_2025_04_23</span></a><br>More sketch-a-day: <a href="https://abav.lugaralgum.com/sketch-a-day" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abav.lugaralgum.com/sketch-a-d</span><span class="invisible">ay</span></a><br>If you like this, support my work: <br><a href="https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">paypal.com/donate/?hosted_butt</span><span class="invisible">on_id=5B4MZ78C9J724</span></a><br><a href="https://liberapay.com/Villares" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">liberapay.com/Villares</span><span class="invisible"></span></a><br><a href="https://wise.com/pay/me/alexandrev562" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wise.com/pay/me/alexandrev562</span><span class="invisible"></span></a><br><a href="https://pynews.com.br/tags/PyMunk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyMunk</span></a> <a href="https://pynews.com.br/tags/Processing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Processing</span></a> <a href="https://pynews.com.br/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://pynews.com.br/tags/py5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>py5</span></a> <a href="https://pynews.com.br/tags/CreativeCoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CreativeCoding</span></a></p>

Schlangenfraß: Video-Tutorials zum Wochenende

Da mein Programm für die nächsten Wochen oder gar Monate darin besteht, mindestens die ersten drei Kapitel aus Daniel Shiffmans »The Nature of Code« nach Python und Pygame zu portieren und um eigene Beispiele zu erweitern, habe ich mir zur Vorbereitung erst einmal ein paar Video-Tutorials herausgesucht, die ich Euch nicht vorenthalten möchte: kantel.github.io/posts/2025022 #GameDev #Python #Pygame #Pymunk #VPython #Trinket #NatureOfCode

Updated: Sharing today a new version of my #Thonny portable (the beginner friendly #Python IDE) with #py5 #shapely #trimesh and #pymunk pre-installed. This "re-packaged distribution" makes it easier for my students to have a #CreativeCoding environment on Windows, and is specially useful for school labs with installation constraints...

Please help me test it!
github.com/villares/thonny-por
Some code: abav.lugaralgum.com/como-insta

I'd like help to build and sign a MacOS "equivalent" and maybe make a Linux AppImage, I'm not sure if AppImage will work as it would need to let people install further libraries. DM of you'd like to help!

GitHubGitHub - villares/thonny-portable-with-py5Contribute to villares/thonny-portable-with-py5 development by creating an account on GitHub.

Galera, como muitos lugares em que eu dou aula usam Windows, eu andei montando um pacotinho "portátil" usando o #ThonnyIDE portable, que já vem com #Python 3.10, e acrescentei a biblioteca de desenho que eu uso, #py5 e mais umas coisinhas como #shapely, #trimesh e #pymunk... se alguem quiser testar, atualizei hoje algumas coisas:

github.com/villares/thonny-por

Thonny e py5 rodam no MacOS e no GNU/Linux também. Pra quem quiser saber mais sobre o py5 (e essa dobradinha com o Thonny IDE) veja esta páginai: abav.lugaralgum.com/como-insta (nessa página está um link para uma versão anterior do portable para Windows que pretendo trocar por essa que está em testes). #ProgramaçãoCriativa #Python #Processing