Nature of Code - F#
Nature of Code
examples and exercises implemented in F#. View the source on
Github
.
I. Introduction
Example I.1: Traditional random walk
Example I.2: Random number distribution
Example I.3: Walker that tends to move to the right
Example I.4: Gaussian distribution
Example I.5: Perlin noise walker
Example I.6: 2D Perlin noise
Exercise I.1: Walker that tends to move to the bottom right
Exercise I.3: Dynamic random walk
Example I.4: Gaussian paint splatter
Exercise I.5: Gaussian random walk
Exercise I.6: Custom distribution random walk
Exercise I.7: Random walk with Perlin noise step size
Exercise I.8: Adjustable 2D Perlin noise
Exercise I.9: Animated 2D Perlin noise
Exercise I.10: Perlin landscape
1. Vectors
Example 1.01: Bouncing ball with no vectors
Example 1.02: Bouncing ball with PVectors
Example 1.03: Vector subtraction
Example 1.04: Multiplying a vector
Example 1.05: Vector magnitude
Example 1.06: Normalizing a vector
Example 1.07: Motion 101 (velocity)
Example 1.08: Motion 101 (velocity and constant acceleration)
Example 1.09: Motion 101 (velocity and random acceleration)
Example 1.10: Accelerating towards the mouse
Example 1.02: Vector walk
Exercise 1.03: 3D bouncing ball
Example 1.05: Accelerating car
Exercise 1.06: Perlin noise acceleration
Exercise 1.08: Variable acceleration towards the mouse