In topography, a ridge is a long, narrow elevation that forms when geological forces push land upward along a linear boundary. Mountains like the Rockies or Alps are essentially giant ridges - chains of peaks separated by valleys.
The ridges technique in generative art uses mathematical functions to create contour lines that follow elevation data. Here's how it works:
# Create a 3D height map from noise or trigonometric functions
height = np.sin(x / amplitude) * np.cos(y / amplitude) + random_noise
# Extract ridges (peaks and valleys) by finding where the gradient is high
gradient_magnitude = compute_gradient(height)
# Draw lines along contour lines where elevation changes
contours = draw_contours(height, level=threshold)
The technique creates pseudo-topographic maps that look like real terrain. Each "ridge" is a line of constant elevation - a contour line drawn by hikers to map mountains.
In code, we:
Real mountain ranges form through:
The generative art technique captures the visual essence: long, continuous lines of peaks separated by troughs. It's not physically accurate, but it captures the aesthetic and structural patterns.