Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-22-2012, 11:22 PM   PM User | #1
farmlord
New to the CF scene

 
Join Date: May 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
farmlord is an unknown quantity at this point
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!
farmlord is offline   Reply With Quote
Old 11-23-2012, 05:37 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,567
Thanks: 62
Thanked 4,057 Times in 4,026 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:57 PM.


Advertisement
Log in to turn off these ads.