summaryrefslogtreecommitdiff
path: root/examples/julia_set.c
diff options
context:
space:
mode:
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,
};