Support color in text

This commit is contained in:
Jaby
2023-06-22 21:52:34 +02:00
committed by Jaby
parent daf610cd00
commit c60f8ac50a
4 changed files with 53 additions and 16 deletions

View File

@@ -15,7 +15,8 @@ void main() {
setup();
while(true) {
FontWriter::write(0, 32, "Cody is cute\n&\na BAAAAABY!!!");
const auto end_pos = FontWriter::write({0, 32}, "Cody is cute\n&\na \x1b[8;0;0mBAAAAABY!!!");
FontWriter::write(end_pos, "\x1b[0;7;7mJaby was\nhere c:");
GPU::swap_buffers_vsync(1);
FontWriter::render();