Code Monkey home page Code Monkey logo

idris2gl's Introduction

Idris2GL

A 2D graphic library for Idris 2, which is inspired by Gloss. IdrisGL uses SDL under the hood, but you won’t need to worry about any of that.

Logo

Contributor Wanted

  • Provides functions to build 2D vector graphics, animations, simulations and games.
  • Supports most of keyboard events and mouse events.
  • Frames per second control.
  • Music and sound effects.

Documentation

Documentation for the IdrisGL

Uses

Install from Source Code

git clone https://github.com/ECburx/Idris2GL
cd Idris2GL
make quickInstall

To compile shared libraries with your own SDLs, following SDL dependencies are required:

  • SDL
  • SDL_image
  • SDL_ttf
  • SDL_gfx
  • SDL_mixer

After you installed these dependencies,

cd Idris2GL
make install

Import

$ idris2 -p idrisGL to load dependencies.

  • import IdrisGL: basic IdrisGL functions.
  • import IdrisGL.Color: predefined colors.`
  • import IdrisGL.Random: unsafe, predictable and limited randomness, for users who need (inaccurate) random data to test graphics. (May be removed in the future.)
  • import IdrisGL.SDL: SDL2, SDL2_image, SDL2_gfx, SDL2_ttf bindings.

Dependencies

  • SDL2
  • SDL2 Image
  • SDL2 GFX
  • SDL2 TTF
  • SDL2 Mixer

Special Thanks

Maintenance

Contributor and volunteers will be gratefully welcomed!

idris2gl's People

Contributors

ecburx avatar algebraic-dev avatar

Watchers

 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.