Fireblend / pyp5js

Python to P5.js Transcriptor

Home Page:https://berinhard.github.io/pyp5js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Python to P5.js Transcriptor

https://berinhard.github.io/pyp5js/

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 98.3%Language:Python 1.6%Language:HTML 0.1%Language:Makefile 0.0%