Questions tagged [jcanvas]

jCanvas is a little jQuery plugin written entirely in JavaScript that makes working with jQuery, and thereby HTML5′s canvas element, a lot easier. Web developers will get a lot of benefit out of using jCanvas. By using jCanvas, you get to work with much simpler code, in which the plugin will do the work and translate it into the relevant code for jQuery to run.

97 questions
1
vote
1 answer

jCanvas - Drag n Drop when scaling

I have painted a canvas with different layers. If I zoom the canvas, then no longer correct positions. But I want to be able to zoom, without any postponements. The canvas itself is zoomed. This is my function: function zoomCanvas(diff){ …
johnny
  • 53
  • 1
  • 5
1
vote
1 answer

Jcanvas layer collision

I'm trying to make a function to detect if two layers collide. Using Jquery, jcanvas and HTML5 canvas I'm building a sort of flight simulator where the player can ascend/descend to avoid hot airballons coming towards the player. I need to detect if…
Philip G
  • 4,098
  • 2
  • 22
  • 41
1
vote
1 answer

HTML5 Canvas with jCanvas: How to remove a layer

I am using jCanvas to build a HTML5 app, I need to remove a layer, which is a black circle on the canvas, you can see the code here. var cvLingualWidth = 945; var cvLingualHeight = 100; var cvLingual =…
Edi Wang
  • 3,547
  • 6
  • 33
  • 51
1
vote
1 answer

How to resize interactively layer in jCanvas

I would like to make anchor points (handlers like in FabricJS) for change the size, width and height of any element drawn on layers with jCanvas. Is it possible to do that?
1
vote
2 answers

How do I get the current rotation angle with jCanvas animation?

I can't figure out how to get the current rotation angle of an arch in jCanvas. layer.rotate only seems to provide me with the original setting of rotate, when I'd really like to change its behavior when it hits a certain angle. I have an example…
Mike Shultz
  • 1,368
  • 1
  • 15
  • 32
1
vote
1 answer

jCanvas's clearCanvas does not seem to work with layers

I've organized my jCanvas code into a render method which fires on window.resize: