nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge: Callref syntax
[nit.git]
/
examples
/
rosettacode
/
perlin_noise.nit
1
#!/usr/bin/env nit
2
#
3
# This file is part of NIT ( http://www.nitlanguage.org ).
4
# This program is public domain
5
6
# Task: Perlin noise
7
#
8
# See: <http://rosettacode.org/wiki/Perlin_noise>
9
module
perlin_noise
10
11
import
noise
12
13
var
map
=
new
ImprovedNoise
14
print map
.
noise
(
3.14
,
42.0
,
7.0
).
to_precision
(
17
)