Questions tagged [ocanvas]

oCanvas is an object-oriented JavaScript library for HTML5 canvas drawing.

enter image description here

oCanvas is a JavaScript library intended to make development with HTML5 Canvas easier. Instead of working with pixels, you work with objects.

Resources

http://ocanvas.org/

https://github.com/koggdal/ocanvas

6 questions
0
votes
1 answer

oCanvas Chart onHover show data

I'm making a line chart in oCanvas, and I need to show the data of a point of the line, when the user hovers that point with his mouse! Is there like a built-in function for it do it itself, or do I have to make it myself? (I didn't find any useful…
Jim The Greek
  • 31
  • 2
  • 7
0
votes
1 answer

oCanvas object dynamic render order

I'm trying to get a dynamic rendering order going in ocanvas but can't find any information in the docs about how to go about doing it. I want something along the lines of "the object's y position affects the order in which it is rendered", it's…
Jeff
  • 19
  • 1
  • 1
  • 6
0
votes
1 answer

Ocanvas creation inquiry

I'm still a little fuzzy on ocanvas, I'm new to it. I know it's not the best choice or most documented, but I have a potential job that depends on me learning it. I was wondering where ocanvas.create(); should be placed. right now I have a…
Jeff
  • 19
  • 1
  • 1
  • 6
0
votes
1 answer

Ocanvas limiting animations

I'm new to ocanvas and I'm finding it is not well-documented for beginners. I would like to know how to limit animations, such as when clicked, a box will move -350 to it's own position but stop at the edge of the canvas if it is closer than it's…
Jeff
  • 19
  • 1
  • 1
  • 6
-1
votes
2 answers

ocanvas sprite hue change

I'm using ocanvas to design a game and I'm wondering if there is some way to change the hue of a sprite. If not, is there a way to integrate an html5 canvas way of changing the hue of a sprite to ocanvas?
Jeff
  • 19
  • 1
  • 1
  • 6
-1
votes
1 answer

Javascript Variable not passing through ocanvas function and for loop

I'm having an issue with a variable not being passed through an ocanvas function. it appears that the variable is changing inside the function but isn't making it outside the function. here is my code: sonicSpeed2 = 0; …
Jeff
  • 19
  • 1
  • 1
  • 6