#simple #graphics #2d

simple

The simplest graphics library, inspired by LOVE2D

11 releases

Uses old Rust 2015

0.3.0 Jan 27, 2019
0.2.1 Jul 14, 2015
0.2.0 May 13, 2015
0.1.0 Apr 30, 2015
0.0.6 Feb 28, 2015

#295 in Graphics APIs

Download history 18/week @ 2022-08-13 26/week @ 2022-08-20 14/week @ 2022-08-27 23/week @ 2022-09-03 28/week @ 2022-09-10 11/week @ 2022-09-17 14/week @ 2022-09-24 31/week @ 2022-10-01 21/week @ 2022-10-08 9/week @ 2022-10-15 11/week @ 2022-10-22 26/week @ 2022-10-29 23/week @ 2022-11-05 18/week @ 2022-11-12 21/week @ 2022-11-19 12/week @ 2022-11-26

83 downloads per month
Used in visit

Zlib license

78KB
415 lines

simple

Build Status

Simple is supposed to be a completely obvious and intuitive game library for Rust. Simple was inspired by LOVE2D. I wrote Simple because I liked the ease-of-use that LOVE2D provided but I wanted the advantage of a typed compiler (Rust).

Simple is a layer built on top of the sdl2 package. You will need some development C libraries. On MacOS, you can use Brew to install them with brew install sdl2. On Linux, look for a libsdl2-dev package in your package manager.

Hello World

let mut app = simple::Window::new("hello world", 1920, 1080);

app.set_color(255, 0, 255, 255);
app.draw_rect(simple::Rect{
    x: 100,
    y: 110,
    w: 120,
    h: 130,
});

while app.next_frame() {}

Examples

Check out the examples/ directory for some mini-programs that use Simple.

cargo run --example font

Maintainer

Alexander Campbell alexanderhcampbell@gmail.com

Dependencies

~14MB
~313K SLoC