Questions tagged as 'canvas'

1
answer

Smaller image than original uploaded on canvas when drawing drawImage ()

I'm developing a system for filtering images with html5 canvas, however, as I'm at the beginning I've had some doubts and errors. In this "beginning" I want the size of the canvas to be the same as the one of the chosen image, so that it occupie...
asked by 07.05.2015 / 21:06
1
answer

Working with Canvas - Borderless

I have a canvas on my page and would like to remove the border .... so I can not ... which property works with the border? function desenhaBase(canvas, context, x1, y1, x2, y2){ context.fillStyle = "white"; c...
asked by 17.12.2014 / 13:00
1
answer

Trajectory of an object using canvas in javascript

The question is, I managed to develop the exercise to a certain extent, after that, as I do not know much of javascript, if I send the square back diagonally, the square comes back before due to the coordinates that have already been used, it is...
asked by 21.08.2018 / 02:02
1
answer

Dynamic chart does not update

I'm using the HTML5 RGraph library and should update dynamically along with the bank. However, I would like the chart to put the last imputed data in the database, so if I entered the value 10 in the database, the graph line would stay in...
asked by 31.10.2017 / 02:15
1
answer

Axes of a Cartesian plane changing according to HTML5 zoom (canvas) + JAVASCRIPT

Galera is as follows, I am doing with js + html5 and canvas a program to plot graphics: Iwouldliketoimplementazoom+and-asintheimage,andreturntotheoriginalzoombyclicking'='.Mydifficultyisthis:afterzooming,theCartesianaxes'x'...
asked by 24.07.2015 / 15:44
1
answer

Check area size on Canvas

I have a code that when you open the report information, a rectangle is created on top of each image in Canvas. However, these images have different sizes, but the canvas remains the same size. I need to make if the area of the image is 1 the ca...
asked by 30.09.2015 / 16:30
2
answers

How to update the canvas?

On a canvas, I added 10 small squares, but I want to be able to change the position of these squares continuously, and that this change is drawn on the screen whenever I do (I do not necessarily need an animation, just understand how I can updat...
asked by 17.04.2015 / 00:36
2
answers

How to copy a canvas to an image

I've been struggling to resolve this issue, which seems simple, but I'm not getting it, Maybe I'm not knowing how to ask the question , so I count on goodwill from friends: 1. I have the following canvas: -> var placeholder = doc...
asked by 05.09.2016 / 10:39
1
answer

How to make an animation by replacing images

There is a game browser on the internet that has a feature that I found interesting and would like to know how to do it. Asyoucanseeinthefigure,therearesomebuildings,someobjectsandsomepeople!Lookinglikethislookslikeareadyimage,howeveranyitemi...
asked by 16.02.2015 / 02:23
1
answer

TiledMap Scrolling

I'm trying to build a camera system for a game that I plan to do in pure javascript, but I can not produce the effect correctly. If anyone can see and fix it or guide me to read some tutorial I would appreciate it very much! Images used:...
asked by 24.11.2015 / 03:52