Skip to main content

Processing Python

Processing Python is a powerful and easy-to-use Graphics Library for Python based on Processing.

It allows you to draw shapes in a window with simple functions like rect() or line(), design animations using the mouse position and much more.

Installation

Install the processing-py package using pip:

 pip install processing-py --upgrade

The first time you run some code using the library, a script will automatically download the appropriate Processing-py command line tools and Java Runtime Enviromment 8u202 for you system (~120 MB).

How to use

from processing_py import *

app = App(600,400) # create window: width, height
app.background(255,0,0) # set background:  red, green, blue
app.redraw() # refresh the window

#app.exit() # close the window

Drawing

from processing_py import *

app = App(600,400) # create window: width, height
app.background(0,0,0) # set background:  red, green, blue
app.fill(255,255,0) # set color for objects: red, green, blue
app.rect(100,100,200,100) # draw a rectangle: x0, y0, size_x, size_y
app.fill(0,0,255) # set color for objects: red, green, blue
app.ellipse(300,200,50,50) # draw a circle: center_x, center_y, size_x, size_y
app.redraw() # refresh the window

Result:

Mouse & Animation

from processing_py import *
app = App(600,400) # create window: width, height

while(True):
   app.background(0,0,0) # set background:  red, green, blue
   app.fill(255,255,0) # set color for objects: red, green, blue
   app.ellipse(app.mouseX,app.mouseY,50,50) # draw a circle: center_x, center_y, size_x, size_y
   app.redraw() # refresh the window

Result:

More functions

Explore all the possibilities in the Processing Reference.

Metadata

Release files for processing-py 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for processing-py 0.3.7
File Size Uploaded
processing_py-0.3.7.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for processing-py 0.3.7
File Interpreter ABI Platform
processing_py-0.3.7-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / processing_py-0.3.7.tar.gz

Download URL processing_py-0.3.7.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5393200b06a1c02314dc55a0fbb29e57ab3517825a59311aff027becb37485c5
BLAKE2b-256 checksum
How to use checksums
4915c94f61b313fdf228537161d65f894ea749a1921b3429ff44bd81d8943a3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release files / processing_py-0.3.7-py3-none-any.whl

Download URL processing_py-0.3.7-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd83acf3c05a9bcd9557a482af50440d2552df4fc1c616de9e38fbf131f5694d
BLAKE2b-256 checksum
How to use checksums
b8992541486b968bf271cfce061bb88603d2c3e270023dab2714cdc47d092f69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.3.7 This release

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page