examples: Use decl literals (#221)

This commit is contained in:
Mike Will 2025-03-12 16:21:15 -04:00 committed by GitHub
parent 03ec79ef85
commit d4fc514d54
Failed to generate hash of commit
37 changed files with 323 additions and 323 deletions

View file

@ -87,7 +87,7 @@ pub fn main() anyerror!void {
rl.beginDrawing();
defer rl.endDrawing();
rl.clearBackground(rl.Color.ray_white);
rl.clearBackground(.ray_white);
// We only draw a white full-screen rectangle,
// frame is generated in shader using raymarching
@ -100,7 +100,7 @@ pub fn main() anyerror!void {
0,
rl.getScreenWidth(),
rl.getScreenHeight(),
rl.Color.white,
.white,
);
}
@ -109,7 +109,7 @@ pub fn main() anyerror!void {
rl.getScreenWidth() - 280,
rl.getScreenHeight() - 20,
10,
rl.Color.black,
.black,
);
//----------------------------------------------------------------------------------
}