From dc6def0ed008901e50c1eb99819ac390844e1691 Mon Sep 17 00:00:00 2001 From: Ryan Kennedy Date: Thu, 19 Mar 2020 10:24:22 -0500 Subject: [PATCH] Upated readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a8fcbe..354b15d 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,12 @@ this crate to work properly. ## Usage ```rust -use vga::colors::Color16Bit; +use vga::colors::{Color16Bit, TextModeColor}; use vga::writers::{ScreenCharacter, TextWriter, Text80x25}; let text_mode = Text80x25::new(); -let screen_character = ScreenCharacter::new(b'T', Color16Bit::Yellow, Color16Bit::Black); +let color = TextModeColor::new(Color16Bit::Yellow, Color16Bit::Black); +let screen_character = ScreenCharacter::new(b'T', color); text_mode.set_mode(); text_mode.clear_screen();