#graphics #2d #game #piston #triangulation


A library for 2D graphics that works with multiple back-ends

59 releases (30 breaking)

0.30.0 Jan 20, 2019
0.28.0 Nov 15, 2018
0.26.0 Feb 22, 2018
0.24.0 Nov 30, 2017
0.0.1 Dec 13, 2014

#5 in Graphics APIs

Download history 1006/week @ 2018-12-20 624/week @ 2018-12-27 668/week @ 2019-01-03 653/week @ 2019-01-10 684/week @ 2019-01-17 910/week @ 2019-01-24 611/week @ 2019-01-31 667/week @ 2019-02-07 529/week @ 2019-02-14 617/week @ 2019-02-21 605/week @ 2019-02-28 571/week @ 2019-03-07 432/week @ 2019-03-14 894/week @ 2019-03-21 411/week @ 2019-03-28

3,113 downloads per month
Used in 66 crates (31 directly)

MIT license


Graphics Build Status Crates.io Crates.io

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

Maintainers: @bvssvni

Graphics online docs

How to contribute

Latest news: Color spaces are now well defined!


Experimental algorithms are developed in a separate repository: Graphics-Lab


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.


  • Easy to use
  • Minimal dependencies
  • Vector graphics
  • Images
  • Text
  • Clipping
  • To have a feature complete library for 2D graphics in general
  • Reasonable defaults with resolution detection whenever possible


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

Used by