Perlin noise: Difference between revisions

Content added Content deleted
(add evaldraw (.kc) solution for Perlin Noise Task)
Line 425: Line 425:
that behaves like perlin noise, but does not give the exact same result as the original implementation in Java by Ken Perlin. There
that behaves like perlin noise, but does not give the exact same result as the original implementation in Java by Ken Perlin. There
is a comparison, so we can see the similarity in output visually.
is a comparison, so we can see the similarity in output visually.

[[File:Evaldrawperlinnoise.png|thumb|alt=builtin noise function is faster|Perlin noise function vs builtin noise]]


<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
Line 534: Line 536:
grad(p[BB+1], x-1, y-1, z-1 ))));
grad(p[BB+1], x-1, y-1, z-1 ))));
}
}
}</syntaxhighlight>
</syntaxhighlight>

[[File:Evaldrawperlinnoise.png|thumb|alt=builtin noise function is faster|Perlin noise function vs builtin noise]]


=={{header|Factor}}==
=={{header|Factor}}==