이 예제는 커서의 위치에 원을 그리지만 원이 직사각형 내에 유지되도록 합니다. 이는 마우스의 좌표를 constrain() 함수에 전달함으로써 수행합니다.
제한(Constrain): Revised by Caleb Foss. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!