Skip to main content

Simple tool to allow to transcrypt Python code that uses P5.js

Project description

pyp5js: Python to P5.js Transcriptor

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 pytop5js 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)


start_p5(setup, draw, {})

Documentation

Installation

Usage

Examples

Known issues and differences to the Processing.Py and P5.js ways of doing things

How can I contribute?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyp5js-0.0.5.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

pyp5js-0.0.5-py3-none-any.whl (553.6 kB view details)

Uploaded Python 3

File details

Details for the file pyp5js-0.0.5.tar.gz.

File metadata

  • Download URL: pyp5js-0.0.5.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for pyp5js-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1573e1cc8d2da47626fc25dccc6820040a968dcc53b2629165c1394d23ade180
MD5 5a1d013e00aeae4b71231a1ce4d5d798
BLAKE2b-256 0a659d78e2cf4cf0ecc0712d2b89b8f5d9ea2a07cef6f056eda9273ff4433851

See more details on using hashes here.

Provenance

File details

Details for the file pyp5js-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyp5js-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 553.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for pyp5js-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 807c3027b9d59a4e58e48aa7f2a2a568b567503470bf89efc6249e75132fa942
MD5 4e853997024d244b97829337fb37130e
BLAKE2b-256 b5903938f27be843cfb5d56126d354d2814266e7d8695e6bfd161e63bb4176bc

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page