#graphics #playdate-sdk

no-std playdate-graphics

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

26 releases

0.4.1 Jul 13, 2024
0.3.14 Apr 9, 2024
0.3.13 Jan 17, 2024
0.3.12 Nov 21, 2023

#187 in Graphics APIs

Download history 84/week @ 2024-07-07 39/week @ 2024-07-14 2/week @ 2024-07-28 8/week @ 2024-08-11 23/week @ 2024-08-18 8/week @ 2024-08-25 2/week @ 2024-09-01 6/week @ 2024-09-08 29/week @ 2024-09-15 39/week @ 2024-09-22 18/week @ 2024-09-29 4/week @ 2024-10-06 10/week @ 2024-10-13

74 downloads per month
Used in 6 crates

MIT/Apache

5MB
115K 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