Skip to content
A library for 2D graphics, written in Rust, that works with multiple back-ends
Rust
Branch: master
Clone or download
Latest commit 78a3901 Aug 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts Enable doc deploying Apr 15, 2015
src Published 0.34.0 Aug 5, 2019
.gitignore Removed "src/text.rs.bk" Sep 14, 2017
.travis.yml Enable doc deploying Apr 15, 2015
AUTHORS.txt Updated `AUTHORS.txt` May 15, 2014
Cargo.png Updated dependency graph May 23, 2019
Cargo.toml Published 0.34.0 Aug 5, 2019
LICENSE Initial commit Apr 20, 2014
README.md

README.md

Graphics Build Status Crates.io Crates.io

A library for 2D graphics, written in Rust, that works with multiple back-ends.

Maintainers: @bvssvni

Documentation

How to contribute

Back-ends
opengl_graphics
gfx_graphics
glium_graphics

Motivation

Sharing graphics source code across projects in Rust

Rust is programming language developed by Mozilla and the Rust community. It is fast, safe, concurrent and cross platform. Because of the many numbers of potential platforms (read: all kinds of computers), it would be nice to have a 2D graphics library that works with multiple back-ends, so you don't have to invent a new graphics engine for each platform you are working on.

One trait for all back-ends

To write your own back-end, use the Graphics trait. The Graphics trait implements default behavior for some methods, which can be overridden for higher quality or better performance.

Goals

  • Easy to use
  • Minimal dependencies
  • Vector graphics
  • Images
  • Text
  • Clipping
  • To have a feature complete library for 2D graphics in general

Non-Goals

  • Image formats
  • Backward compatibility (expect lot of breaking)
  • Platform or back-end specific code
  • 3D
  • Physics
  • Node tree
  • One-to-one correspondence with standards
  • Integration with platform GUI
  • Resolution detection

Used by

Dependencies

dependencies

You can’t perform that action at this time.