Giter Site home page Giter Site logo

gterm's Introduction

gterm

Minimal terminal graphics library written in C.

Mandelbrot set

How to use

All you need to do to use gterm in your project is add the gterm.c file to your project and include the gterm.h file.

Basic usage example:

/*
* Initialize gterm screen struct 
* with width, height and square pixels(false if you want standard rectangular characters)
*/
gt_screen *screen = gt_init_screen(80, 50, true);

/* Set background color of the screen */
gt_set_background(screen, gt_get_color(153, 255, 0));

/* Set a specific pixel */
gt_set_pixel(screen, j, i , gt_get_color(255, 0, 0));

/* Render screen. Nothing is display before this */
gt_refresh(screen);

/* Free the screen structure */
gt_free_screen(screen);

For full functionality check the gterm.h file.

Code examples

In the examples directory you can find code samples that use gterm. Just go inside the directory and run make.

gterm's People

Contributors

paunstefan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.