A library for canvas operations using pygame
Project description
Canvas Canvas is a Python module built on top of Pygame, designed to simplify the creation of interactive applications and games. It provides a set of functions and classes for managing graphical elements, handling user input, and implementing game logic.
Features Window Management: Create resizable windows with customizable properties such as title, size, and icon. Event Handling: Capture user input events like mouse clicks, keyboard presses, and window resizing. Sprite Management: Define and manipulate sprites with properties like position, scale, rotation, and collision detection. Text Rendering: Render text with customizable fonts, sizes, colors, and antialiasing options. Sound Playback: Play sounds with adjustable volume and manage sound effects associated with sprites. Physics Simulation: Implement basic physics interactions such as collision resolution and object movement. Usage Installation To use Canvas, you'll need Python installed on your system along with the Pygame library. You can install Pygame using pip:
pip install pygame
Example Usage
Here's a simple example demonstrating how to use Canvas to create a window and display a sprite:
import pygame_canvas as c
c.default_template(file)
The code above will load a default template into the main python script OVERWRITING EVERYTHING ELSE
Documentation For detailed documentation and usage examples, refer to the Canvas documentation at: https://docs.google.com/document/d/18SMSY5RbigaOX2WOaGQs0iEUvSFnpfpWjsBxBNwq0nA/edit?usp=sharing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 pygame_canvas-1.7.1-py3-none-any.whl.
File metadata
- Download URL: pygame_canvas-1.7.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a78986f1e431ef0445f6d4c397385c10e35d3c44c28abb2ce6fa5174a3c4db7a
|
|
| MD5 |
58dad3f45523ca1df0131b4e7e54d18d
|
|
| BLAKE2b-256 |
22543836679e85eafa85df9bd67f711ac4f572fdbf185825b697f047776ccd09
|