Atlas - REDSCRN.C
Home / systems / IBM-PC / PhotonX / src / demos Lines: 1 | Size: 456 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1#include "VGA.H" 2 3int main() 4{ 5 int x; 6 int y; 7 8 vga_set_mode(VGA_MODE_320x200x256); 9 10 for (x = 0; x < 64; x++) 11 vga_set_palette((uint8_t)x, (uint8_t)x, 0, 0); 12 13 vga_gfx_setclscolor(63); 14 vga_gfx_cls(); 15 16 for (x = 0; x < 320; x++) 17 for (y = 0; y < 200; y++) 18 vga_gfx_putpixel((uint16_t)x, (uint16_t)y, 63); 19 20 vga_wait_key(); 21 22 vga_set_mode(VGA_MODE_TEXT_80x25); 23 24 return 0; 25} 26[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.