29 releases

new 0.5.0 Feb 18, 2025
0.4.2 Jan 31, 2025
0.4.1 Jul 13, 2024
0.3.13 Jan 17, 2024
0.3.12 Nov 21, 2023

#190 in Graphics APIs

Download history 5/week @ 2024-10-29 2/week @ 2024-11-05 13/week @ 2024-11-12 8/week @ 2024-11-19 10/week @ 2024-11-26 13/week @ 2024-12-03 20/week @ 2024-12-10 9/week @ 2024-12-17 156/week @ 2025-01-28 52/week @ 2025-02-04 183/week @ 2025-02-11

391 downloads per month
Used in 6 crates

MIT/Apache

18MB
313K SLoC

Graphics API for PlayDate

High-level graphics API built on-top of playdate-sys.

Usage

extern crate playdate_graphics;
use playdate_graphics::{bitmap, color, text, BitmapFlipExt};

// create and draw black rect:
let image = bitmap::Bitmap::new(100, 100, color::Color::BLACK).unwrap();
image.draw(50, 100, bitmap::BitmapFlip::Unflipped);

// draw simple line of text:
let str = CStr::from_bytes_with_nul(b"Simple Text\0").unwrap();
text::draw_text_cstr(str, 40, 40);

More covered in examples.


This software is not sponsored or supported by Panic.


lib.rs:

Playdate graphics API

Dependencies