diff tests/test_noise.nim @ 1136:71315636ba82

did: refactor naming in tons of places
author sam <sam@basx.dev>
date Tue, 04 Jun 2024 16:51:50 +0700
parents fad6490fb728
children 114f395b9144
line wrap: on
line diff
--- a/tests/test_noise.nim	Mon Jun 03 16:05:17 2024 +0700
+++ b/tests/test_noise.nim	Tue Jun 04 16:51:50 2024 +0700
@@ -8,9 +8,9 @@
 for y in 0 ..< h:
   for x in 0 ..< w:
     let v = (
-      perlin(newVec2f(float(x) * 0.01, float(y) * 0.01)) * 0.7 +
-      perlin(newVec2f(float(x) * 0.05, float(y) * 0.05)) * 0.25 +
-      perlin(newVec2f(float(x) * 0.2, float(y) * 0.2)) * 0.05
+      perlin(NewVec2f(float(x) * 0.01, float(y) * 0.01)) * 0.7 +
+      perlin(NewVec2f(float(x) * 0.05, float(y) * 0.05)) * 0.25 +
+      perlin(NewVec2f(float(x) * 0.2, float(y) * 0.2)) * 0.05
     )
     o = o & $(int((v * 0.5 + 0.5) * 255)) & " "
   o = o & "\n"