Skip to main content

"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.

Sample program

from easygraphics import *

def mainloop():
    x = 0;

    while is_run():
        x = ( x + 1 ) % 440;
        draw_ellipse(x + 100, 200, 100, 100);

init_graph(640, 480)

Special Thanks

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



  • 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


  • fix : Readme


  • add: easygraphics functions can run in the interactive mode (eg. IPython) correctly

  • add: dialogs (in easygraphics.dialog package, adopted from

    easygui_qt )

  • add: create and save to/from file

  • add image transforms (translate/rotate/scale)

  • add view port support

  • add sphinx docs

  • upload docs to


  • add readme text

  • add delay_fps() and rgb() functions



  • First release on github

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

easygraphics-0.9.4.tar.gz (38.1 kB view hashes)

Uploaded Source

Built Distribution

easygraphics-0.9.4-py3-none-any.whl (53.7 kB view hashes)

Uploaded Python 3

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