update readme and fixed bug for black/white pixels

pull/5/head
TheRealOrange 2022-02-23 00:11:51 +08:00
rodzic 949e5714c2
commit 1fe5f3fed2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: E155025E350A1A4B
3 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -36,7 +36,7 @@ Clearly there is potential here. By using the unicode quarter block characters,
- ▝ (U+259D quadrant upper right)
- ▖ (U+2596 quadrant lower left)
- ▗ (U+2597 quadrant lower right)
- ▞ (U+259E 1uadrant upper right and lower left)
- ▞ (U+259E quadrant upper right and lower left)
- ▄ (U+2584 lower half block)
- ▐ (U+2590 right half block)
- ▂ (U+2582 lower quarter block)

Wyświetl plik

@ -241,12 +241,12 @@ int main(int argc, char *argv[]) {
printf("\u001b[%d;%dH\u001b[48;2;0;0;0;38;2;255;255;255m fps: %5.2f | avg_fps: %5.2f | print: %6.2fms | dropped: %5d | curr_frame: %5d ",
msg_y, 0, (double) frametimes.size() * 1000000.0 / frame10_time, avg_fps,
(double) printing_time / 1000.0, dropped, curr_frame);
prevpixelbg[0] = 256;
prevpixelbg[1] = 256;
prevpixelbg[2] = 256;
prevpixel[0] = 256;
prevpixel[1] = 256;
prevpixel[2] = 256;
prevpixelbg[0] = 1000;
prevpixelbg[1] = 1000;
prevpixelbg[2] = 1000;
prevpixel[0] = 1000;
prevpixel[1] = 1000;
prevpixel[2] = 1000;
// If the frame is empty, break immediately
if (frame.empty()) {

BIN
tvp

Plik binarny nie jest wyświetlany.