Implementing Perlin Noise in TypeScript

Table of Contents 1. Introduction 2. Basic outline 3. Implementation 3.1. Vector class 3.2. Interpolation function 3.3. Noise function 3.4. Main loop 1. Introduction Ever since I first started programming, I was always fascinated by noise functions. The idea that you can take a relatively simple algorithm and generate realistic-looking textures of clouds, fire, cloth, etc. is really cool. However,…