Questions tagged as 'canvas'

2
answers

How to remove the previous canvas?

What happens is that I get the hora in a función and I update it every 1 second with a setInterval , and the drawing in a canvas with fillText . The problem is that the previous time is not deleted, so 2:50:30...
asked by 19.07.2017 / 08:51
0
answers

I increase the performance in Canvas

If I need to draw a lot of images on canvas It is feasible to use canvas.imageSmoothingQuality = "low"; To improve performance? IN THE MDN, it says nothing about performance with this method     
asked by 19.07.2017 / 01:02
0
answers

ChartJs, Draw straight lines in bar chart [closed]

THE EXPECTED Be able to draw horizontal lines with labels and colors as seen in the photo. Set static scale from 0 to 300. My current code: JS var data = { labels: ["UNO"], datasets: [...
asked by 05.05.2017 / 14:56
1
answer

Canvas Fabric overlay

I have a canvas created in principle with a background image, to which from a button I add a marker (a normal and current image) over the background, the subject is, if I click on the background, I leaves the marker unused, having to move...
asked by 13.01.2017 / 15:20
1
answer

PdfDocument layout [closed]

Hello, I want to generate a PDF with the Android PdfDocument class of the size from a letter sheet. The layout I need must have a form and image. With data aligned in the corners such as date, signatures, sections in boxes, footer, etc....
asked by 17.06.2016 / 16:13
1
answer

How to apply an event to an array of canvas objects?

I have to make a diagram in HTML5 canvas and for them I make arrangements of rectangles with strokeRect. However, these elements must have events and detect when they are clicked and change color, can someone give me a clue on how I can apply an...
asked by 07.07.2017 / 19:33
2
answers

How to draw a chart with svg?

I need to draw the next chart through SVG, could someone help me get to the goal? since I tried without success since I did not draw in svg I was also supported with bookstores but I also did not get what I expected. The increase bar would be...
asked by 16.10.2018 / 21:47
1
answer

drag canvas with two canvas

I am doing that one can upload the logo and position it anywhere in the background image, the problem is that the drag works with a canvas but with two sometimes it works after a while, they know if there is a way to Do it different ?. What I wa...
asked by 28.06.2017 / 00:04
1
answer

Imitate a canvas background

I'm trying to imitate the background this page link I do not mean the particles but the degraded purple that has but can not do it the closest thing to theirs. Any suggestions to try to imitate that kind of gradient?     
asked by 27.07.2018 / 05:18
1
answer

The second time of onchage does not work on an input file

The code tries to draw on the canvas the image that I select with the input, but it turns out that in the code I have, the first time I enter an image it works but when I re-select another photo in the input file, the onchange no longer works....
asked by 08.06.2018 / 11:32