1
vote
3answers
32 views
How to add click to shaped in loop?
I'm passing text arrays to my circleCreate function, which creates a wedge for each text. What I'm trying to do is add a click event to each wedge, so when the user clicks on a wedge, it throws an ...
0
votes
1answer
11 views
canvas function imageObj onload in slower and doesnt return anything
I have created a function on javascript and google maps for using a external icon, and redraw it using html5 canvas, however, cause of loading icon, when I use the imageObj.onload, function sont ...
0
votes
1answer
33 views
Connect color picker (jquery UI slider) to Sketch.js
I worked on getting a color picker together, which I plan on using to control the color selection for sketching with Sketch.js. According to Sketch.js documentation, the 'marker' tool will obtain it's ...
1
vote
2answers
77 views
HTML5 Game, canvas or div?
I am planning on creating a real-time multiplayer platformer game in HTML5 using javascript. After searching about 4 hours on the webs, i couldn't find an up-to-date answer on the eternal question: ...
0
votes
0answers
13 views
jquery knob excanvas/flashcanvas IE 8
I am stuck with trying to get the jquery Knob plugin to work in IE 8. I understand that IE8 does not support canvas elements, and have read that I can use the excanvas library or flashcanvas to get ...
6
votes
6answers
102 views
Algorithm for random land in a “Tank Wars” game
Did you ever played the "Tank wars" game?
Image: http://i.stack.imgur.com/Y1Ly6.png
I'm programming this game with JavaScript + Canvas (for a personal challenge), and what I need is an algorithm for ...
-2
votes
1answer
38 views
HTML5 Canvas - Ball to ball collision [closed]
Don't leave any votes up on this question, if you want to do that leave them here!:
Ball to Ball Collision - Detection and Handling
I know there's already this same question here on stackoverflow: ...
-1
votes
0answers
19 views
How to create Image Input Levels(Output) on js?
How to create Image Input Levels(Output) ? I have Image on canvas...and i must correct it levels by created
<input type="range" id="imageInputWhite" value="0" min="0" max="255" ...
0
votes
2answers
20 views
Change cursor while painted on canvas using jQuery?
I have fixed myself a canvas which can be painted on + disable selection + detecting cross browser when the mouse is clicked.
Here it is : http://jsfiddle.net/EsYqm/52/
But how can I change the ...
2
votes
1answer
42 views
Unexpected color?
So I have created some little methods to create a canvas more easily. Here's are the parts related to the unexpected result:
var Functions = {
createCanvas: function (width, height) {
...
...
0
votes
2answers
18 views
HTML5 canvas can't apply sw filter
I want to write code that can filter the source of an image and return the data that it can be used as source for an image tag in the DOM. Therfore I created a virtual canvas. At the moment it only ...
0
votes
1answer
34 views
transition to curve drawn in canvas?
I have a simple straight line drawn by a bezier curve.The challenge is to change the position it transition i.e if the height of curve increases or decreases,it should happen in transition,not all of ...
0
votes
2answers
16 views
NS_ERROR_NOT_AVAILABLE: Component is not available
I have a problem. I am trying to draw an image onto a canvas. The image is not from the HTML page, but on a file. Here is the code i use:
var img = new Image();
img.src = "/images/logo.jpg";
...
1
vote
1answer
73 views
What is the formula to divide a set of squares into powers of 2? (Javascript)(canvas)
Final Edit: SUCCESS!
As previously stated in my comment below Michael's answer, I was not accounting for the fact I had multiplied the amount of rows by the width of my squares.
The full correct ...
0
votes
1answer
52 views
HTML5 Canvas Game - Controls relative to direction
How can I make the controls of the player to be like, that left and right just changes direction and up goes forward, sowell as down goes back in the current direction, instead of the controls that I ...