aboutsummaryrefslogtreecommitdiff
path: root/code/main.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-25 01:38:01 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-25 01:38:01 +0330
commite55d45bac0bbd3039118bffa7e6aaf01c04b991a (patch)
tree111bf667a2786fd593d05f5e562e1edc87c343fc /code/main.felan
parent81c83f4233dba3851333cb69ab9727659e253d1b (diff)
add bitwise not and xor or
Diffstat (limited to 'code/main.felan')
-rw-r--r--code/main.felan13
1 files changed, 10 insertions, 3 deletions
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;
+};