+ 1

P5.js help please

Hello, could anyone provide me a code for p5.js that make an ellipse follow a square path pattern ?

25th Oct 2018, 9:32 AM
Pierre Bonnet
Pierre Bonnet - avatar
1 Odpowiedź
+ 4
function draw(){ rect(rcX, rcY, rcWidth, rcHeight); ellipse(rcX, rcY, rcWidth, rcHeight); } or... path=rcSize/2; function draw(){ rect(rcX, rcY, rcSize, rcSize, path--); } I don't know what you need😅
9th Feb 2019, 11:57 PM
AlfaV
AlfaV - avatar