xxxxxxxxxx
// Bedirhan Ugur
// https://bedirxanugur.com
let r = 300
function setup() {
createCanvas(800, 800);
drawingContext.shadowOffsetX = 0;
drawingContext.shadowOffsetY = 0;
drawingContext.shadowBlur = 100;
drawingContext.shadowColor = 'white';
frameRate(1)
//noLoop()
describe('In the center of the black and white canvas in square proportions, there is a large shining circle containing other circles. The inside of the circle is made of intersecting lines. The white lines and dots on the background of the canvas represent outer space.')
}
function draw() {
background(30);
for (let i = 0; i < 1000; i++) {
drawRL();
}
push()
blendMode(ADD)
noStroke();
fill(30)
circle(width / 2, height / 2, r * 2)
drawingContext.clip();
blendMode(EXCLUSION)
daire()
fill(255)
blendMode(ADD)
for (let y = 100; y < height - 100; y += 30) {
stroke(255, random(255))
strokeWeight(random(1))
line(0, y, width, random(height) + random(cos(y)))
//blendMode(LIGHTEST)
line(random(width) + random(sin(y)), 0, y, width)
}
pop();
function daire() {
fill(30)
circle(width / 2, height / 2, r * 2)
for (let a = 100; a < height - 100; a += 10) {
noStroke()
fill(255, random(200, 255))
circle(random(width), random(height), random(100))
}
}
}
function drawRL() {
let a = random(0, width);
let b = random(0, height);
stroke(255, 200);
let wxt = random(1);
strokeWeight(wxt);
let ext = random(10, 200);
if (random(100) < 50) { // Yatay ve Dikey Çizgiler Yüzde Elli Olasılıkla Ekrana Yazdırılıyor.
line(a, b, a + ext, b);
fill(255, 200);
circle(a, b, a % 1)
} else {
push()
strokeWeight(1);
stroke(255, 100)
fill(255, 200);
circle(a, b, b % 8)
pop()
line(a, b, a, b + ext);
}
}