Skip to content

Instantly share code, notes, and snippets.

Avatar
🐉

Oliver De Jesús Rosario Reyes TheTuringExperience

🐉
  • Rialtic
  • Santo Domingo, Rep. Dominicana
View GitHub Profile
@TheTuringExperience
TheTuringExperience / perlin.py
Created May 2, 2020 — forked from eevee/perlin.py
Perlin noise in Python
View perlin.py
"""Perlin noise implementation."""
# Licensed under ISC
from itertools import product
import math
import random
def smoothstep(t):
"""Smooth curve with a zero derivative at 0 and 1, making it useful for
interpolating.