berinhard / pyp5js

Python to P5.js Transcriptor

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyp5js: drawing with Python 3

PyPI version Continuous Integration Gitpod ready-to-code

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

Python 3 drawing in the web! Try it here!

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

def setup():
    createCanvas(200, 200)

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

Project setup

$ git clone git@github.com:YOUR_GITHUB_PROFILE/pyp5js.git
$ cd pyp5js
$ pip install -r dev-requirements.txt
$ python setup.py develop
$ make test

More references

About

Python to P5.js Transcriptor

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

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 97.5%Language:Python 2.2%Language:HTML 0.3%Language:Makefile 0.0%Language:Batchfile 0.0%Language:Shell 0.0%Language:CSS 0.0%