/pyp5js

Python to P5.js Transcriptor

Primary LanguageJavaScriptGNU Lesser General Public License v3.0LGPL-3.0

pyp5js: Python to P5.js Transcriptor

PyPI version CircleCI

Processing ideas and Python 3 together with P5.js in the browser, using Transcrypt.

Here's an example of a valid Python code using P5.js API:

from pyp5js import *

def setup():
    createCanvas(200, 200)
    background(160)

def draw():
    fill('blue')
    background(200)
    r = sin(frameCount / 60) * 50 + 50
    ellipse(100, 100, r, r)