"A TC Graphics style like Graphics Library"
Project description
A Borland Graphics Interface like Grahics library for python
Borland Graphics Interface, also known as Turbo C Graphics, is an easy-to-use graphics library bundled with Turbo C/Turbo C++/Borland C++.
Because it is easy to learn and use, it is very good for using for kids and beginners to learn basic programming , computer graphics.
Free software: GPL v3 license
Documentation: https://pyeasygraphics.readthedocs.io/en/latest/
Sample program
from easygraphics import *
def mainloop():
x = 0;
set_color(Color.BLUE);
set_fill_color(Color.GREEN);
while is_run():
x = ( x + 1 ) % 440;
clear_device();
draw_ellipse(x + 100, 200, 100, 100);
delay_fps(60)
init_graph(640, 480)
mainloop()
close_graph()
Special Thanks
Some code is taken from easygui_qt and qtutils, thanks a lot!
History
0.9.5
add: headless mode support (no graphics window mode, use it to draw pictures)
0.9.4
add: easygraphics.legacy package to better compatible with old BGI programs.
add: get_click() function to get mouse click event
change: background implementation to make set_background_color() work correctly
- add: now can use name (“red”), color string (“#ff0000), integer color rgb value (0xff0000)
in set_color(), set_fill_color(), set_background_color() functions
add: cymk() and hsv() to get CYMK and HSV format color
more tutorials
0.9.3
fix : Readme
0.9.2
add: easygraphics functions can run in the interactive mode (eg. IPython) correctly
- add: dialogs (in easygraphics.dialog package, adopted from
add: create and save to/from file
add image transforms (translate/rotate/scale)
add view port support
add sphinx docs
upload docs to readthedocs.org
0.9.1
add readme text
add delay_fps() and rgb() functions
0.9.0
add keyboard and mouse message check and handle
add simple dialogs ( from EasyGUI-Qt (https://github.com/aroberge/easygui_qt) and qtutils (https://bitbucket.org/philipstarkey/qtutils))
0.1.0
First release on github
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 Distribution
Built Distribution
Hashes for easygraphics-0.9.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626fd90c14f800f0b25da7bd1e26c1ea10b6d2b24151c4cfdd6fcf3f1158c734 |
|
MD5 | e3c8f1d3c6a8b8338f2692353bc66906 |
|
BLAKE2b-256 | fc8cacb5928014114715669efb3569c532f602435c1ae67c8fe2f4d5e122f0c9 |