I have been thinking a lot on what to blog about. I have not been able to find some interesting topic to write about. So, I have been reading through the news and different online content and until I observed a clip art of a person. It was an image and storing and retreiving an image takes more data to be transfered from the server to the client. I bet it would be much more efficient if we simply programmed it in. In this post, I am going to attempt to draw a person in using JavaScript. Creation of HTML DIVs and adding the styles shall also be taken care of from the JavaScript side. First let's set up the drawing canvas. I will be using DIVs in this attempt and not going to use any of the SVG related tags. var canvas = document.createElement("div"); canvas.style.background = "#efefef"; canvas.style.width = "500px"; canvas.style.height = "500px"; document.body.appendChild(canvas); Now, let's create the head. The head may b...
No Longer a Social Network...