Skip to main content

Console Graphics Library

Project description

Python рџђЌConGL рџ”®

pip: pip install -U ConGL

Why?

This python package is intended for people who don't know C++ and just want to build a console app/game using pythons simple syntax

Python ConGL containcs basically everything you need to create something cool using its API

Usage

Everything is same as C++ version, except few things:

  • Static eng2D::Layout methods collides and onCollision were renamed to collides_S and onCollision_S
  • WinScreen class can't be accessed (it can be needed in some rare cases)

Performance

Python ConGL is using precompiled binaries which means lack of any serios performance hits. Actually Python ConGL is just a wrapper for the C++ version.

Simple Example

from ConGL import *

screen = Screen()  
screen.toggleAutosize(True)

main = eng2D.Layout(screen)
rect = eng2D.shapes.Rectangle((30, 30))
main.addFigure(rect)

while True:
	# terminate when escape is pressed
	if keys.released(chr(0x1b)): 
		break
		
	main.draw(True)

More Examples

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

ConGL-0.2.2.tar.gz (2.5 MB view details)

Uploaded Source

File details

Details for the file ConGL-0.2.2.tar.gz.

File metadata

  • Download URL: ConGL-0.2.2.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ConGL-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a3b9aa96a826b561cbd5625f00c0148b0a25314a90a62c0f50944a27e9e3ee23
MD5 ab783165b2c55529ad4f17beb3028038
BLAKE2b-256 2197669a6adaffe902ff41e16ef3947c41282cc7a7df8cd0dfeea42b22e65591

See more details on using hashes here.

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