From 0805bd7a59f5f1d232ef5a440d3e4648617c78c3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 17 Oct 2024 09:19:38 -0700 Subject: fix a comment --- apps/mandelbrot.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/mandelbrot.mu') diff --git a/apps/mandelbrot.mu b/apps/mandelbrot.mu index 218fd4fa..90e5171a 100644 --- a/apps/mandelbrot.mu +++ b/apps/mandelbrot.mu @@ -132,8 +132,8 @@ fn mandelbrot-y x: float, y: float, imaginary: float -> _/xmm3: float { } # Scale (x, y) pixel coordinates to a complex plane where the viewport width -# ranges from -2 to +2. Viewport height just follows the viewport's aspect -# ratio. +# ranges from (scene-cx - scene-width/2) to (scene-cx + scene-width/2). +# Viewport height just follows the viewport's aspect ratio. fn viewport-to-real x: int, width: int, scene-cx: float, scene-width: float -> _/xmm0: float { # 0 in the viewport goes to scene-cx - scene-width/2 -- cgit 1.4.1-2-gfad0