"A TC Graphics style like Graphics Library"


Keywords
easygraphics, computer, graphics, Turbo, C, Borland, Interface
License
BSD-3-Clause
Install
pip install easygraphics==1.0.18

Documentation

Introduction to PyEasyGraphics

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.

https://badge.fury.io/py/easygraphics.png https://pypip.in/d/easygraphics/badge.png

Sample program

The following code shows a moving ellipse.

from easygraphics import *

def mainloop():
    x = 0
    set_color(Color.BLUE)
    set_fill_color(Color.GREEN)

    while is_run():
        x = (x + 1) % 440
        if delay_jfps(60):
            clear_device()
            draw_ellipse(x + 100, 200, 100, 100)

def main():
    init_graph(640, 480)
    set_render_mode(RenderMode.RENDER_MANUAL)
    mainloop()
    close_graph()

easy_run(main)

Special Thanks

Some code is taken from easygui_qt and qtutils, thanks a lot!