Questions tagged as 'canvas'

1
answer

collisions with javascript and canvas

Hi, I'm good at this and I'm stuck with the collisions, in Mario.prototype.checkCollition I have to reposition the character Mario to the left of the obstacle but it's not that if I hit the other side it stays to the right, I do not know if it s...
asked by 30.05.2018 / 14:23
0
answers

html2canvas jspdf at internetexplorer 11

I have the following problem. I have a button that has to make a screenshot and generate a pdf. I use the html2canvas libraries (to make the screenshot) and the jsPDF library, to convert the image to pdf. In browsers chrome and firefox works wit...
asked by 06.04.2018 / 13:46
0
answers

image base64 in score in plugin google maps cordova

I'm running an application in Cordova with the google maps plugin link and I need to add bookmarks with a label. According to this tutorial link say how to do it with    Base64 Encoded Icon Carry out the process as shown in the exa...
asked by 05.04.2018 / 19:01
0
answers

Touch event on canvas

I need help with canvas, I do not know how to add the touch event for touchs I can zoom with the mousewheel event but not with the touch this is the code I have <!DOCTYPE HTML> <html lang="en"><head> <meta http-eq...
asked by 21.03.2018 / 22:22
0
answers

How do I store what I have selected in canvas and fabric

Well that's a figure and if I select it it is painted red and if I want to mark many more and then save it to a mysql database. please help I have to do it with JSON var fig_a1 = new fabric.Path('M 78 72 L 40 45 C 39 22 160 21 162 44 L 123 72...
asked by 16.03.2018 / 20:16
1
answer

Scale Canvas Image

I have a 800x400 canvas, I'm painting on it a very small and pixelated images (5x5, 10x5, 7x5, 5x7, etc). When sending them to the canvas doing scaled [2, 2], [4, 4] etc. It is not done linearly and does not preserve the clarity of the pixels. H...
asked by 17.02.2018 / 22:40
0
answers

Download image file with canvas

I need help to put an image format to the file that I download with canvas, the whole process is done successfully unless you have downloaded the image appears as download without no format I would appreciate your giving me a hand. Html C...
asked by 13.02.2018 / 17:10
1
answer

How do I change the line thickness on canvas according to an interval?

I want to create a canvas element that changes the thickness of the border every 3 seconds, that has a thickness of line 5px starting, 3 seconds later has another thickness of 10px, after 3 seconds start again in thickness 5px. That is, it is in...
asked by 12.02.2018 / 16:26
0
answers

Error: Component definition not found: canvas in [LanguageDefinition: xul / html]

I am trying to use canvas in my java project with the zk framework and I get this error when I go open the html I have already imported the canvas library, but even so I have searched but I can not find a solution. <zk xmlns="http://www.zko...
asked by 12.02.2018 / 22:12
0
answers

Android - How to draw with different styles?

Good morning, I'm already doing this tutorial a few days ago to learn how to make drawing apps. link link I have the following code that I am studying and trying to decipher its operation, and I have several doubts about it. 1) w...
asked by 27.01.2018 / 17:42