Sunday, March 12, 2023

Something very smart to do in web

And you know spirograph



And imagine that you could trainn do that in the web with Javascript, and canvas HTMLElement, imagine that you need create inside a while to keep until the trace doesn't repeat, is like you keep the first trace positions(x,y),

2nd - you have to draw inside an for, of course that you can project an while or a do while to be like an for, and all that distant point of the stars have to be inside an circle and to calculate that positions you have to use the method ctx.arc(), and to do the traces you have to call the method ctx.arcTo(), so that is supose to be hard? Rute Bezerra de Menezes Gondim

No comments:

Post a Comment