No autoresizing to fit the code
Render blocking of the parent page
Apply local draft version or discard it
Auto-close HTML tags
Show line numbers
Enable line wrapping
Indent with tabs
The challenge for this week is to design a turtle drawing program that accepts any form of user input in order to move, rotate and style a “pen” across a canvas. It should resemble the functionality demonstrated in the following diagram…
The important things we are looking for are the ability to change direction and then to move forward in a straight line. You can do this with HTML elements (and some interesting CSS) but we encourage the use of SVG or canvas in your solutions as they are more suited to the task.
Hint: you don’t have to have the labels on the left and you can use text fields (or even keyboard navigation) instead of links. What is important is how you maintain and modify direction and position of the “pen” (the point at the “front” of the line).
Add title to make the fiddle public.
/echo simulates AJAX calls:
See docs for more info.
Created and maintained by Piotr and @oskar.
Hosted on DigitalOcean
All code belongs to the poster and no license is enforced.
JSFiddle or its authors are not responsible or liable for any loss or damage of any kind during the usage of provided code.
Status page by updown.io
Keep us running by whitelisting JSFiddle in your ad blocker.
We're serving quality, tech-related ads only.