Lignes aléatoires
| Artiste | Œuvre | Année |
|---|---|---|
| Georg Nees | Untitled | 1976 |
Publié dans Computer Graphics and Art (Mai 1976)
strokeWeight(3)
const S = width/2;
for (let r = PI*0.25; r <= PI*2.25; r += PI*0.5) {
const x = S + cos(r) * S * 0.66
const y = S + sin(r) * S * 0.66
for (let c = 0; c < 100; c++) {
const angle1 = random() * PI
const angle2 = PI + random() * PI
const p1 = [
x + cos(angle1) * S * 0.46,
y + sin(angle1) * S * 0.46
]
const p2 = [
x + cos(angle2) * S * 0.46,
y + sin(angle2) * S * 0.46
]
line(p1[0], p1[1], p2[0], p2[1])
}
}