From e55d45bac0bbd3039118bffa7e6aaf01c04b991a Mon Sep 17 00:00:00 2001 From: A404M Date: Sun, 25 May 2025 01:38:01 +0330 Subject: add bitwise not and xor or --- code/main.felan | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'code/main.felan') diff --git a/code/main.felan b/code/main.felan index 0258e17..a415607 100644 --- a/code/main.felan +++ b/code/main.felan @@ -20,12 +20,19 @@ main :: ()->void{ str2 := &c[0]; screenWidth :i32: 800; screenHeight :i32: 450; + white :u32: 4294967295; + black :u32: 4278190080; InitWindow(screenWidth,screenHeight,str); - while (!WindowShouldClose()) { + while !WindowShouldClose() { BeginDrawing(); - ClearBackground(@cast(4294967295,u32)); - DrawText(str2,@cast(190,i32),@cast(200,i32),@cast(20,i32),@cast(4278190080,u32)); + ClearBackground(@cast(white,u32)); + DrawText(str2,@cast(190,i32),@cast(200,i32),@cast(20,i32),@cast(black,u32)); EndDrawing(); } CloseWindow(); }; + +color :: (a:u8,r:u8,g:u8,b:u8)->u32{ + t :u8= 255; + c := t&a; +}; -- cgit v1.2.3