summaryrefslogtreecommitdiff
path: root/examples/julia_set.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-01-14 06:33:54 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-01-14 06:33:54 +0100
commitdced6f7768e02252af11f9b41017d75c66b47d81 (patch)
tree008f4cb816a09b776013d5903b34fb89c01cf042 /examples/julia_set.c
parentc9208089c6074575342d529f494295c13269a1aa (diff)
downloadreduced_system_layer-dced6f7768e02252af11f9b41017d75c66b47d81.zip
Correct examples for changed graphics procs
Diffstat (limited to 'examples/julia_set.c')
-rw-r--r--examples/julia_set.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/julia_set.c b/examples/julia_set.c
index 90e4b45..e50a246 100644
--- a/examples/julia_set.c
+++ b/examples/julia_set.c
@@ -1,4 +1,4 @@
-#include "../reduced_system_layer.c"
+#include "../graphics.c"
i64 p = 4;
f64 view_x = 0.;
@@ -71,7 +71,7 @@ void update_and_render_frame(void) {
for (i32 jj = 0; jj < p; ++jj)
for (i32 ii = 0; ii < p; ++ii)
- g_platform.pixels[(j + jj) * g_platform.frame_width + (i + ii)] = rgb_f32_from_u32(c);
+ g_platform.pixels[(j + jj) * g_platform.frame_width + (i + ii)] = with_alpha(rgb_f32_from_u32(c), 1.f);
}
p_render_frame();
@@ -83,8 +83,6 @@ i32 main(i32 argc, c8 **argv) {
g_platform = (Platform) {
.title = "Julia Set",
- .frame_width = 960,
- .frame_height = 720,
.exact_resolution = 1,
};