Questions tagged as 'canvas'

0
answers

Xamarin Android - Create a line where the finger passes

Hello, I would like to create a straight or rectangle, where my finger goes. It does not really have to be exactly where to go, but on top of each button I move the finger it increases the rectangle, as if it were a selection of a word in a "wor...
asked by 28.12.2016 / 17:50
0
answers

Mounting a javascript rule with array

I need to put a ruler like the drawing. I'm having a hard time finding logic so I'd like some help. Scenery : There are two arrays (one with temperature data and one with pressure data). I need to convert these two arrays into two scales...
asked by 26.07.2016 / 03:23
1
answer

Stop animation with requestAnimationFrame on canvas

I'm using Canvas to do this link , but I'd like to stop the animation by clicking on div using some requestAnimationFrame functionality. I used setInterval but the animation does not look cool, so I decided to use...
asked by 28.07.2015 / 19:29
2
answers

Resizing image with Canvas and JavaScript

How to reduce the size of an image with JavaScript ? I'm using canvas to resize, reduce size in proportion and converting to jpeg . The problem occurs when I try to save the image, since I can not download it converted to jpe...
asked by 12.02.2015 / 16:51
1
answer

How does "restore" and "save" methods work?

I was trying to understand the working of the save and restore methods of canvas and looked at the MDN . Even though I still did not understand the difference between using them or not. According to the documentation,...
asked by 15.01.2018 / 14:02
2
answers

SVG, Canvas or CSS? I need to make a network of circles with images that interconnect

Well, that's it. I thought of doing using SVG and bordered image but my concern is about responsiveness, on smaller devices it will get all messed up I wanted a way for lines to automatically connect to images regardless of where the...
asked by 06.03.2018 / 02:58
1
answer

ChartJS 2.0 Rotation

How can I rotate the text? What I have: I'mtryingtorotatebutctx.translatedoesnotworkright,see: Here'smycode:animation:{onComplete:function(){varchartInstance=this.chart;varctx=chartInstance.ctx;ctx.textAlign="center";...
asked by 18.07.2016 / 14:27
1
answer

Invert value of y on canvas

I wonder if there is a way to invert the y-axis of canvas so that the point (0,0) is actually the point (0.500) .... That is, if I play the value 20 in the Y, instead of starting from the top down, start from the bottom up ..... func...
asked by 01.06.2015 / 18:55
1
answer

Canvas issues within a WebView in react native [pending]

Why changing the height > 100 and width > 640 on the canvas inside a WebView in react native, nothing else and drawing? //funciona ... canvas.width = 640; canvas.height = 100; ctx.drawImage(img, 0, 0); ... //não funciona ... canvas....
asked by 10.12.2018 / 02:59
1
answer

Is it possible to make a picker color with canvas?

With the addition of canvas to HTML5, various possibilities have arisen, such as creating small games or even a memes generator . With this, I would like to know if through canvas it would be possible to create a color picker....
asked by 13.08.2018 / 19:56