#playdate #graphics #playdate-sdk #api #gamedev #sdk

nightly no-std playdate-graphics

High-level graphics API built on-top of Playdate API

24 releases

0.3.14 Apr 9, 2024
0.3.13 Jan 17, 2024
0.3.12 Nov 21, 2023
0.3.11 Oct 27, 2023
0.0.0 Sep 8, 2023

#198 in Graphics APIs

Download history 24/week @ 2024-01-16 13/week @ 2024-02-13 215/week @ 2024-02-20 44/week @ 2024-02-27 5/week @ 2024-03-05 26/week @ 2024-03-12 2/week @ 2024-03-19 3/week @ 2024-03-26 28/week @ 2024-04-02 158/week @ 2024-04-09 2/week @ 2024-04-16 6/week @ 2024-04-23

166 downloads per month
Used in 6 crates

MIT/Apache

15MB
334K 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