myransom | Posted: 28 Jan 2024, 09:07 PM |
---|---|
Member Posts: 1 Joined: 31-December 23 |
Absolutely love the Polar Coordinate Etch a Sketch! Is there any way to add windows with counters to indicate the current values for rho and theta? I think it would be helpful when making a design to be able to know what those values are. ------------- |
[top] | |
mit | Posted: 31 Jan 2024, 02:08 PM |
yeah whatever Admin Posts: 566 Joined: 4-May 16 |
Yes, easy enough to do. If you open the dev console (usually F12 or ctrl+shift+k or ctrl+shift+j) and paste in the following it should work:p=document.createElement("p"); etch.parentNode.insertBefore(p, etch); disp=function(){p.innerText=`r: ${radius}\nθ: ${(angle*180/Math.PI).toFixed(1)}°`; requestAnimationFrame(disp)}; disp() Of course if by "windows" you mean little decorative displays on the graphical design that would take a little more work. ------------- |
[top] | |
Sign in to post a reply.