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