judy hopps

This commit is contained in:
Elfein Landers 2022-01-26 23:47:24 -08:00
parent 0404fdd41f
commit bbed40d46d
2 changed files with 122 additions and 119 deletions

View file

@ -6,6 +6,7 @@ use alloc::{
use picorand::PicoRandGenerate;
use rkyv::{ser::serializers::AllocSerializer, Deserialize};
use shadeable::pixel_format::from_vga_16;
use vga::colors::Color16;
use y_compositor_protocol::Version;
use crate::{
@ -93,7 +94,7 @@ pub fn screen_writer_test() {
// sock_print_id.write(format!("1....2....3....4....5....6....7....8....9").into());
for current in (*String::from_utf8_lossy(&sock_print_id.peek().unwrap())).chars() {
vga_e::draw_char(0, 0, current, 0);
vga_e::draw_char(0, 0, current, from_vga_16(Color16::Red));
}
}

View file

@ -32,8 +32,10 @@ const GLYPH_WIDTH: f32 = 10.0;
/// * `glyph` - the glyph to draw
/// * `color` - the color of the glyph
pub fn draw_char(mut x: u32, mut y: u32, character: char, color: Rgba64) {
// trace!["Judy Hopps is thicc af"];
// let mode = *VGAE.lock();
let mut mode = SCREEN_BUFFER.lock();
// trace!["She got them bouncy bunny buns"];
let basic_multingual_plane = FontRef::try_from_slice(include_bytes!(
"../../ableos/assets/fonts/unifont-14.0.01.ttf"