Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Vector graphics

  1. #1
    New to the CF scene
    Join Date
    May 2012
    Thanked 0 Times in 0 Posts

    Vector graphics

    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!

  2. #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,947 Times in 4,908 Posts
    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".
    Be yourself. No one else is as qualified.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts