| Crates.io | playdate-graphics |
| lib.rs | playdate-graphics |
| version | 0.6.1 |
| created_at | 2023-09-08 14:12:14.288708+00 |
| updated_at | 2025-03-19 17:22:18.548624+00 |
| description | High-level graphics API built on-top of Playdate API |
| homepage | https://github.com/boozook/playdate |
| repository | https://github.com/boozook/playdate.git |
| max_upload_size | |
| id | 967151 |
| size | 170,640 |
High-level graphics API built on-top of playdate-sys.
⚠️ Prior to the version 1.0 API is unstable and can be changed without deprecation period.
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.