Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    7
    Thanks
    0
    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
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,028
    Thanks
    75
    Thanked 4,325 Times in 4,291 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".
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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