Questions tagged as 'canvas'

1
answer

Timeline Google Chart, add slider / picker

Is there a way to insert a picker or slider to capture the time? Example: I should update parameters from the date selected with the picker. google.charts.load('current', { callback: function () { var dataTable = new google....
asked by 27.11.2017 / 16:10
2
answers

How to transform base64 image to File?

I am generating a canvas within my application, then I would like to upload what is believed in that canvas as a% png image to my server. The problem I'm having is that it goes up, obviously with weight but the image can not be seen. The can...
asked by 09.03.2017 / 20:43
3
answers

Graph data already read from .xls files in html5

This button must be programmed to read a file in Excel with two columns, the first with data (x) and the second with data (y). the new records must be graphed but I have not yet achieved it. var lineChartData = { "datasets": [{ "data": [...
asked by 05.10.2016 / 23:21
2
answers

Problem repositioning img on canvas with keyListener

I'm trying to move wolf with the arrows on the keyboard, but I can not get more recharge the position of all animals, except the wolf, and what I want is to move the wolf with the arrow pointing up. I'll put the rest of the keys when I get them...
asked by 09.05.2018 / 20:09
2
answers

Fill effect on image with Css Canvas or Svg

I need to know if there is any way to generate a "wave" filling effect ON A PNG IMAGE. It does not matter if it's with CSS, SVG, Canvas or some external javascript library. With a small example, they help me a lot. It would be something like...
asked by 30.10.2018 / 14:03
1
answer

How do I stop an interval in js?

Hello, my problem arises when I stop an interval in javascript, because even if I use the ClearInterval it continues printing. var canvas = document.getElementById('canvas'); var btnInicia = document.getElementById("inicia"); var btnPara = do...
asked by 29.03.2018 / 05:46
2
answers

Delete item when a key is pressed

The code consists of creating a wolf with the arrows on the keyboard, I already made a functional code, but a wolf remains behind as if it were a wolf line. How do I remove the wolf old as it were? That is, the wolf before the new one that...
asked by 25.12.2018 / 00:46
1
answer

CSS / Javascript Filling Effect [closed]

I need to generate a fill effect by CSS, CANVAS or SVG, which is done on the PNG image that I have. The filling can be horizontal or vertical. It must be on the image. Current Expected : The effect does not necessarily have to be...
asked by 04.12.2017 / 15:42
1
answer

How to move an image that I am inserting canvas with the mouse

Could you please help me, what I want to happen is that I can insert an image that is canvas and that image move it with the mouse over a box ... This inserts but when you click on the image, it disappears . THANK YOU !!! document.getEle...
asked by 26.09.2018 / 08:21
1
answer

Put a link inside a canvas

with PHP and through an SQL query, I get some parameters, which I show through a for and that end up showing up as a link. This is easy to implement and it works, but I want that link to be inside an HTML canvas and this is where the problems ap...
asked by 16.03.2018 / 23:27