Giter Site home page Giter Site logo

open-simplex-noise-js's People

Contributors

astablenaka avatar feirell avatar joshforisha avatar minttu avatar patbox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

open-simplex-noise-js's Issues

Documentation

We need some docs. At this moment some information about the returned value range of the noise function. Just add a line to readme.md about the value range. 0..1 or -1..1 or -0.5..0.5? etc.

Ok I see that the value is -1..1. So I can normalize it by (value + 1) / 2 to convert -1..1 to 0..1.
But as I can see it correctly it's never reaches 1 (min / max). It's about 0.7 or 0.9. I tested it with with a lot of iterations.

Expose ES6 / TypeScript modules

Would be nice if it were possible to import this library as ES6 modules, e.g. when compiling via rollup or tsc in your own toolchain.

Cannot resolve './constants'

I get the following webpack error when loading this module in a typescript project:

ERROR in ./node_modules/open-simplex-noise/lib/index.js
Module not found: Error: Can't resolve './constants' in '~/code/phaser-games/top-down-rpg/node_modules/open-simplex-noise/lib'
 @ ./node_modules/open-simplex-noise/lib/index.js 3:18-40
 @ ./src/GameScene.ts
 @ ./src/index.ts

This is the project template I'm using in case it's something wrong with my webpack/ts configs. I verified that you can reproduce the error by cloning this repo and trying to use the module. For example:

// GameScene.ts
import { makeNoise2D } from "open-simplex-noise"
const noise = makeNoise2D()

Better example image

It is known that simplex noise is used in landscape generation. But your example image looks rather like a white noise.

Can you change it to a better image, so game developers can trust this lib is for them?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.