Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. var canvas = document.getElementById("canvas");
  2. var ctx = canvas.getContext("2d");
  3.  
  4. ctx.beginPath();
  5. ctx.moveTo(300,300);
  6. ctx.lineTo(400,300);
  7. ctx.lineTo(400,200);
  8. ctx.lineTo(300,200);
  9. ctx.lineTo(300,300);
  10. ctx.stroke();
  11. ctx.beginPath();
  12. ctx.moveTo(330,270);
  13. ctx.lineTo(430,270);
  14. ctx.lineTo(430,170);
  15. ctx.lineTo(330,170);
  16. ctx.lineTo(330,270);
  17. ctx.stroke();
  18. ctx.beginPath();
  19. ctx.moveTo(330,270);
  20. ctx.lineTo(300,300);
  21. ctx.stroke();
  22. ctx.beginPath();
  23. ctx.moveTo(430,170);
  24. ctx.lineTo(400,200);
  25. ctx.stroke();
  26. ctx.beginPath();
  27. ctx.moveTo(330,170);
  28. ctx.lineTo(300,200);
  29. ctx.stroke();
  30. ctx.beginPath();
  31. ctx.moveTo(430,270);
  32. ctx.lineTo(400,300);
  33. ctx.stroke();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement