-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Description
The drawing app could be shrunken from 342 Characters to 222 characters if the code was changed to this:
Data url data:text/html,<canvas id=v></canvas><script>with(v.getContext`2d`)v.onpointerdown=e=>(beginPath(),moveTo(e.x,e.y)),v.onpointermove=e=>(lineTo(e.x,e.y),stroke()),v.width=innerWidth,v.height=innerHeight,lineWidth=2</script>
Note: could be even smaller if closing script tag was removed
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels