GithubHelp home page GithubHelp logo

traviswhitaker / gloss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benl23x5/gloss

0.0 3.0 0.0 794 KB

Painless 2D vector graphics, animations and simulations.

Home Page: http://gloss.ouroborus.net/

Haskell 94.29% Makefile 0.05% C 5.66%

gloss's Introduction

gloss

Build Status

Gloss hides the pain of drawing simple vector graphics behind a nice data type and a few display functions.

Example

Getting something on the screen is as easy as:

import Graphics.Gloss
main = display (InWindow "Nice Window" (200, 200) (10, 10)) white (Circle 80)

Explore and run the example projects using stack:

$ stack setup
$ stack build
$ stack exec gloss-boids

Usage

Once the window is open you can use the following:

  • Quit

    • esc-key
  • Move Viewport

    • arrow keys
    • left-click drag
  • Zoom Viewport

    • page up/down-keys
    • control-left-click drag
    • right-click drag
    • mouse wheel
  • Rotate Viewport

    • home/end-keys
    • alt-left-click drag
  • Reset Viewport

    • 'r'-key

More

  • Animations and simulations can be constructed similarly using the 'animate' and 'simulate' functions
  • Games with user input can be constructed with the 'play' function.
  • See the gloss-examples package for more.

PULL REQUESTS

As Gloss is now fairly stable, I typically make releases only when there is a new GHC version. If you have added a new feature or fixed a bug, and want your pull request merged sooner than that, then send email to benl AT ouroborus.net. I don't pay attention to github notifications, but am happy to receive emails from people. If you have changed any internal functionality then please test that all the gloss-examples still work before submitting your pull request.

If you just want to bump a dependency version then get a Hackage trustee to edit the package information directly on Hackage. You don't need to raise a pull request here.

gloss's People

Contributors

acowley avatar banx avatar benl23x5 avatar bitonic avatar cdsmith avatar christiaanb avatar dougburke avatar elisehuard avatar evanrinehart avatar gabriella439 avatar gelisam avatar glguy avatar klao avatar kvanbere avatar mr- avatar sgraf812 avatar suzumiyasmith avatar tfausak avatar tmcdonell avatar tommd avatar tranma avatar tuongnm avatar

Watchers

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