felix91gr / rust-noisetoys Goto Github PK
View Code? Open in Web Editor NEWA learning project for me and @ghoeb where we use Rust and try to understand Perlin and other Noises :3
A learning project for me and @ghoeb where we use Rust and try to understand Perlin and other Noises :3
The stdlib provided Vec seems like a good start.
This is important to keep track of exactly what we need to implement.
v
. Properties:
f(v)
for that vector. Properties:
f
is continuousf(v)
is deterministic: its value doesn't change if the state of the program changes.f(v)
appears to be random for v
: ideally, v
can't be found from f(v)
, and f(v+x)
is unpredictable for large x.f(v)
is isotropic: it has no discernible directional patterns. Might not hold for Perlin. It does hold for Simplex, though.f(v)
has no discernible aliasing.v
.
v.floor()
.v.ceil()
.c
i, with gradient g
ido:
u = v - c
in
i = u * g
in
i, interpolate using a fifth degree polynomial (or a Hermite blending function).The result of 4 (or 5) is f(v)
.
To-Do:
rand crate could be a good start
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.