Express your creativity in Python through simple PyPen sketches!
Project description
Express your creativity in Python through simple PyPen sketches!
What is PyPen?
PyPen tries to be the end-all solution to creative coding in Python. It provides very easy-to-use functions for drawing primitives to the screen and getting user input.
We felt like there was always a bunch of overhead needed to get nice and simple HTML-canvas-like graphics to work in Python and that this overhead always made for a half-baked user experience.
PyPen is basically doing all of the boring stuff in the background and exposes simple functions like clear(), circle(x, y, radius), rectangle(x, y, width, height) and many more for you to use and express your creativity with.
How do I Use PyPen?
Checkout our setup tutorial: How do I Use PyPen
TL;DR:
- type
pip install pypenand follow instructions if any extra dependencies are needed. - type
pypen --init example, which will create a file named example.py in your current directory.
The example.py file will look like this:
from pypen import *
def start():
settings.fps = 60
def update():
fill_screen("orange")
rectangle(20, 20, 300, 400, "red")
- type
pypen exampleand a window should popup with something looking like this: - edit the example.py file by checking out PyPen's documentation and examples
Inspiration from our Examples:
| Example 002 | Example 003 |
|---|---|
| Example 006 | Example 007 |
|---|---|
| Example 010 | Example 011 |
|---|---|
(For Maintainers) How does PyPen work?
We have an entire page dedicated to explaining the inner workings of PyPen. If you are a developer interested in helping PyPen's development, you should check it out: How does PyPen Really Work?
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypen-0.0.5.tar.gz.
File metadata
- Download URL: pypen-0.0.5.tar.gz
- Upload date:
- Size: 5.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
620b82b71b35ee2e2ed039a37bf5071aa5b06386ecac8777d9b4e34e971291e3
|
|
| MD5 |
dfa5b50bcf0e4e82551d7b0e51a55a0f
|
|
| BLAKE2b-256 |
c1479feaefa2fbf331cfd2579924d301304346371a154e51d3adb10c81e0319d
|
File details
Details for the file pypen-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pypen-0.0.5-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32d505f5e332ae95837505496120b710a4a13a6a099745e31784ffd31203eaf5
|
|
| MD5 |
59bb42a0cb88336f3837fcc9230d35c4
|
|
| BLAKE2b-256 |
458212ca74a66778e61a84c4543033d77383d69cdd4b22eecc197336a66546b8
|