Skip to content

Instantly share code, notes, and snippets.

View artfwo's full-sized avatar
💭
Patterns are meant to be broken.

Artem Popov artfwo

💭
Patterns are meant to be broken.
View GitHub Profile
@eevee
eevee / perlin.py
Last active June 20, 2024 01:58
Perlin noise in Python
"""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.