Wie ich schon in meiner jüngsten Update-Meldung zu Py5, dem Processing-Python3-Modul, angedeutet hatte, interessiert mich, welche Code-Änderungen notwendig sind, wenn ich Py5-Skripte nach Proceso, der PyScript-Version von Processing und Python, portiere (oder vice versa). Also habe ich als ersten Test das sattsam bekannte Bouncing-Balls-Beispiel einmal in Proceso implementiert: Auch hier habe ich wieder ein wenig Interaktivität eingebaut: Mit einem Mausklick in den Canvas könnt ihr neue B...| Der Schockwellenreiter
Gestern abend stolperte ich über dieses Video, in dem der User Kenney Yip Coding ein Entenjagdspiel in pure JavaScript und dem HTML Canvas programmierte. Das ist an sich noch nichts Besonderes, aber die Bilder der Enten, die er verwendete, waren animierte GIFs, und da stellte sich mir die Frage, ob das nicht auch in Python ginge. Die kurze Antwort ist: Py5 kann mit den animierten GIFs nichts anfangen, aber Proceso, die PyScript-Version von Processing und Python, kann es. Für meine Versuche ...| Der Schockwellenreiter
Das erste (für mich) wichtige Update in diesem Herbst: Letzte Woche verkündete James Schmitz stolz, daß er das Release 0.10.7a0 von Py5, dem Processing-Python3-Modul, das Processings Original-Bibliotheken (via JPype) nutzt, freigegeben habe, das auf dem jüngsten Processing-Release 4.4.6 beruhe. Neben einigen Bugfixes ist das einzige neue Feature, daß das Py5Image-Objekt nun ebenfalls eine resize()-Methode besitzt. Processings PImage-Objekt besaß schon jeher eine PImage.resize()-Methode,...| Der Schockwellenreiter
Ein Partikelsystem mit Proceso und PyScript| kantel.github.io
Stage 1: Ein Planet umkreist seine Sonne| kantel.github.io
Auf zu neuen Ufern? Python im Browser| kantel.github.io
PyScript – or rather Python in your browser + what can be done with it? A few days ago, the Anaconda project announced the PyScript framework, which allows Python code to be executed directly in the browser. Additionally, it also covers its integration with HTML and JS code. An execution of the Python code in ...| research.securitum.com
Setting up Python event handlers in Pyscript requires special handling. Pyodide provides a proxy so that DOM events can use Python functions as callbacks.| John Hanley
Introduction I have noticed an interesting anomaly between Pyodide and Pyscript. Pyscript takes about one second longer to load an HTML + Python page than Pyodide. Pyodide averages 2 seconds and Pyscript 3 seconds. Other interesting stats: Downloads: Pyodide downloads... Continue Reading →| John Hanley