about summary refs log tree commit diff stats
path: root/apps/mandelbrot.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-10-17 09:19:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-10-17 09:19:38 -0700
commit0805bd7a59f5f1d232ef5a440d3e4648617c78c3 (patch)
treebfb0da1a9689021a2d500a2c55f1cb4689cf8cf8 /apps/mandelbrot.mu
parentb44567ba2358847014720278eb946d33e4f2179d (diff)
downloadmu-0805bd7a59f5f1d232ef5a440d3e4648617c78c3.tar.gz
fix a comment
Diffstat (limited to 'apps/mandelbrot.mu')
-rw-r--r--apps/mandelbrot.mu4
1 files changed, 2 insertions, 2 deletions
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