diff tests/test_noise.nim @ 1139:114f395b9144

did: finish refactoring and updated all tests accordingly
author sam <sam@basx.dev>
date Sat, 08 Jun 2024 14:58:25 +0700
parents 71315636ba82
children
line wrap: on
line diff
--- a/tests/test_noise.nim	Tue Jun 04 22:08:48 2024 +0700
+++ b/tests/test_noise.nim	Sat Jun 08 14:58:25 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"