playdate-graphics

Crates.ioplaydate-graphics
lib.rsplaydate-graphics
version0.4.1
sourcesrc
created_at2023-09-08 14:12:14.288708
updated_at2024-07-13 08:15:14.480929
descriptionHigh-level graphics API built on-top of Playdate API
homepagehttps://github.com/boozook/playdate
repositoryhttps://github.com/boozook/playdate.git
max_upload_size
id967151
size166,536
Alexander Koz. (boozook)

documentation

README

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.

Commit count: 445

cargo fmt