From 6acf34db5c104cdf3593f8041a6564e20f5203a1 Mon Sep 17 00:00:00 2001 From: Sven Riwoldt Date: Sat, 10 Jan 2026 18:12:48 +0100 Subject: [PATCH] Julia mit GameZero --- Mandelbrot.jl | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/Mandelbrot.jl b/Mandelbrot.jl index 5b0fb72..6db6153 100644 --- a/Mandelbrot.jl +++ b/Mandelbrot.jl @@ -1,8 +1,24 @@ -#using Plots -#plot([1,2,3,4], [1,4,9,16], label="Quadratisch") +#= using Plots +plot([1,2,3,4], [1,4,9,16], label="Quadratisch") =# -using GLMakie -lines(0:0.01:10, sin) +#using GLMakie +#lines(0:0.01:10, sin) #using Gadfly -#plot(x=1:10, y=(1:10).^2, Geom.line) \ No newline at end of file +#plot(x=1:10, y=(1:10).^2, Geom.line) + +using GameZero +using Colors + +# Fenster-Einstellungen +WIDTH = 400 +HEIGHT = 400 +BACKGROUND = :black + +# Die draw-Funktion wird jeden Frame aufgerufen +function draw() + # Zeichnet einen einzelnen Punkt (Pixel) bei x=200, y=200 + # Da ein Pixel winzig ist, nutzt man oft ein kleines Rechteck + # oder die Point-Funktion. + draw(Rect(200, 200, 1, 1), :red, fill=true) +end \ No newline at end of file