Questions tagged as 'canvas'

1
answer

Collisions on canvas html5 game

I hope you are having a good day. I'm here because I have a canvas collision problem ... I am creating or trying to create my first jjuego with canvas and javascript. I'm on the side of collisions, which does not work for me, I do not understand...
asked by 19.11.2017 / 18:11
1
answer

Problem with JavaScript game with Canvas

Good evening to the community, I've been programming, or good, trying to schedule a game on canvas. I still do not know how to put it, but, if the functions that I would like to fulfill. For now, the design is pure rectangles, then, I will add p...
asked by 07.11.2017 / 04:05
2
answers

Chart JS, Join points undefined

There are times when my system receives nulls or undefined. I need that when I have null or undefined data the union between these points is traced with a line of another color. Current Expected var ctx = document.getElem...
asked by 30.10.2017 / 12:41
1
answer

Problem with canvas in android studio

Good afternoon, I hope someone can guide me that I'm a bit lost, the problem is that I'm drawing a canvas in my project where I have an interface with 2 buttons and an editText, and at the moment of running the app the canvas covers my interface...
asked by 23.10.2017 / 00:23
1
answer

Difference between values in X Tooltip Chart JS

Is there any way to add an item to the tooltip and perform calculations among others? For example, in this image an item is added and the value would be the difference between the other two values. Expected: Current JSFIDDLE...
asked by 23.11.2017 / 20:22
1
answer

Chart JS, Start from negative value

Is it possible to start the graph from a negative value to a positive one? ACTUAL EXPECTED: That is, the value starts from a negative number and extends to the positive defined in the dataset. var canvas = docume...
asked by 18.09.2017 / 21:01
1
answer

Problems with onload event when loading images

Good, I have a loop that runs through an array in which there may or may not be loaded images, the issue is that when you crash these images on a canvas and do it in the way you specify in MSDN, I can only load the last image the same number of...
asked by 21.08.2017 / 09:52
1
answer

Error in canvas quality

Why does the filltext font look like this?    Code: /* Área de programación */ $(function(){ var w = window; var d = document; var dW = d.body.clientWidth; var dH = d.body.clientHeight; console.log(dW); var c...
asked by 13.08.2017 / 23:56
0
answers

Android Studio screen limits

I have a Bitmap on the canvas that I move around the screen with an On Touch event. The question is, how can I make the image I move not to leave the screen? Type set some limits where you can move it and hit the edge of the screen and do not le...
asked by 17.06.2017 / 18:18
1
answer

How to click a canvas element?

How could click 'if the person enters a link for fillText in Canvas ? Edito: I'm still investigating and I've seen you say that I can associate an event handler to the canvas , then take the text coordinates and if you...
asked by 30.06.2017 / 04:53