View Full Version : Vector graphics

11-23-2012, 12:22 AM
Hey guys I'am using JavaScript to draw a sort of like bomb as I'am making a game. I know i can just import it from the internet but i would rather draw it using JavaScript so i can animate it later. Could anyone help me draw it. I guess it would be just a circle with a string that curls a bit. My first time using java script really so any help would be great. Thanks!

Old Pedant
11-23-2012, 06:37 AM
You can only do this in JS by using a canvas.

So one easy thing to do is to use one of the JS canvas libraries.

Try googling for "javascript canvas library".