let circles = []; let numCircles = 20; let angle = 0; function setup() { createCanvas(800, 800); noStroke(); for (let i = 0; i < numCircles; i++) { circles.push({ x: width / 2, y: height / 2, radius: 20 + i * 15, speed: 0.02 + i * 0.005, phase: i * 0.3 }); } } function draw() { background(0); translate(width / 2, height / 2); for (let i = 0; i < circles.length; i++) { let c = circles[i]; let x = cos(angle * c.speed + c.phase) * c.radius; let y = sin(angle * c.speed * 1.5 + c.phase) * c.radius; // Color gradient based on position let r = map(x, -width/2, width/2, 255, 0); let g = map(y, -height/2, height/2, 0, 255); let b = map(c.radius, 20, 20 + numCircles * 15, 255, 100); fill(r, g, b, 180); ellipse(x, y, 30, 30); } angle += 0.02; }
Wikiprompt, 무료 프롬프트 백과사전에서
let circles = []; let numCircles = 20; let angle = 0; function setup() { createCanvas(800, 800); noStroke(); for (let i = 0; i < numCircles; i++) { circles.push({ x: width / 2, y: height / 2, radius: 20 + i * 15, speed: 0.02 + i * 0.005, phase: i * 0.3 }); } } function draw() { background(0); translate(width / 2, height / 2); for (let i = 0; i < circles.length; i++) { let c = circles[i]; let x = cos(angle * c.speed + c.phase) * c.radius; let y = sin(angle * c.speed * 1.5 + c.phase) * c.radius; // Color gradient based on position let r = map(x, -width/2, width/2, 255, 0); let g = map(y, -height/2, height/2, 0, 255); let b = map(c.radius, 20, 20 + numCircles * 15, 255, 100); fill(r, g, b, 180); ellipse(x, y, 30, 30); } angle += 0.02; } p5js를 사용하여 새로운 착시 현상을 설계하도록 AI에 요청하는 프롬프트로, 지각에 대한 지식을 활용하고 그 결과를 설명하는 내용입니다.
프롬프트 내용저장
전체 프롬프트를 보려면 로그인하세요
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
사용법
이 프롬프트는 creative와 함께 사용하도록 설계되었습니다. 위의 프롬프트 내용을 복사하여 원하는 AI 도구에 붙여넣으세요.
최상의 결과를 얻으려면 자리 표시자(대괄호 또는 대문자로 표시)를 특정 요구 사항으로 사용자 지정할 수 있습니다.
토론
댓글 0개