https://github.com/berinhard/pyp5js
Python to P5.js Transcriptor
https://github.com/berinhard/pyp5js
creative-coding hacktoberfest hacktoberfest2021 p5js processing python
Last synced: 11 months ago
JSON representation
Python to P5.js Transcriptor
- Host: GitHub
- URL: https://github.com/berinhard/pyp5js
- Owner: berinhard
- License: lgpl-3.0
- Created: 2018-09-26T16:27:58.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2023-05-02T00:18:24.000Z (almost 3 years ago)
- Last Synced: 2024-12-24T20:36:15.903Z (about 1 year ago)
- Topics: creative-coding, hacktoberfest, hacktoberfest2021, p5js, processing, python
- Language: JavaScript
- Homepage: https://berinhard.github.io/pyp5js/
- Size: 10.2 MB
- Stars: 203
- Watchers: 14
- Forks: 37
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## pyp5js: drawing with Python 3
[](https://badge.fury.io/py/pyp5js)

[](https://gitpod.io/#https://github.com/berinhard/pyp5js/tree/main)
> [Processing](https://processing.org) ideas and Python 3 together with [P5.js](https://p5js.org) in the browser.
Python 3 drawing in the web! Try it [here](https://berinhard.github.io/pyp5js/pyodide/)!
Here's an example of a valid Python code using P5.js API:
```python
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
### [Documentation](https://berinhard.github.io/pyp5js)
### [Examples](https://berinhard.github.io/pyp5js/examples/)
### [Installation](https://berinhard.github.io/pyp5js#installation)
### [Quickstart](https://berinhard.github.io/pyp5js#quickstart)
### [Internals details](https://berinhard.github.io/pyp5js#internals-details)
### [Known issues and differences to the Processing.Py and P5.js ways of doing things](https://berinhard.github.io/pyp5js#known-issues-and-differences-to-the-processingpy-and-p5js-ways-of-doing-things)
### [How can I contribute?](CONTRIBUTING.md)