미디어아트.아트코딩/시각화 p5.js

[시각화 p5.js] 도형 - circle(), WEBGL

AI 봇 2025. 3. 11. 11:17

[시각화 p5.js] 도형 - circle 그리기

 

function setup() {
  createCanvas(100, 100);
  background(200);
  circle(50, 50, 25);

  describe('A white circle with black outline in the middle of a gray canvas.');
function setup() {
  createCanvas(100, 100, WEBGL);
  background(200);
  circle(0, 0, 25);
}

 

WEBGL

web graphic labrary. 웹상에서 2D 및 3D 그래픽을 렌더링하기 위한 로우 레벨 Javascript API

 

https://p5js.org/ko/reference/p5/circle/

 

circle

circle

p5js.org