Skip to content

Commit

Permalink
Fixed primary-file and a typo in the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Verkamp committed Sep 19, 2013
1 parent f715e42 commit d9f4d6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion info.rkt
Expand Up @@ -4,7 +4,7 @@
(define scribblings '(("manual.scrbl" ())))

(define blurb '("Perlin/Simplex noise generators."))
(define primary-file "noise.rkt")
(define primary-file "noise/main.rkt")
(define homepage "https://github.com/jpverkamp/noise/")

(define version "1.0")
Expand Down
8 changes: 6 additions & 2 deletions manual.scrbl
Expand Up @@ -16,6 +16,10 @@ This package provides Racket versions of the

@url{https://github.com/jpverkamp/noise/}

@section{Installation}

@commandline{raco pkg install github://github.com/jpverkamp/noise/master}

@section{Functions}

@defproc[(perlin [x real?] [y real? 0.0] [z real? 0.0]) real?]{
Expand All @@ -29,7 +33,7 @@ This package provides Racket versions of the
@section{Examples}

@interaction[
(require images/flomap racket/flonum "main.rkt")
(require images/flomap racket/flonum noise)
(define (clamp min max n)
(/ (- n min) (- max min)))

Expand All @@ -47,7 +51,7 @@ This package provides Racket versions of the
(build-flomap*
3 w h
(lambda (x y)
(define g (clamp -1.0 1.0 (simplex (* scale (/ x w) (* scale (/ y h))))))
(define g (clamp -1.0 1.0 (simplex (* scale (/ x w)) (* scale (/ y h)))))
(vector g g g)))))
(build-simplex-image 256 256 #:scale 10.0)

Expand Down

0 comments on commit d9f4d6d

Please sign in to comment.