Questions tagged as 'canvas'

2
answers

Triangle Delphi - Canvas

I want to draw a triangle in Delphi with Canvas . This pointer will serve as a pointer to a Gauge (Speedometer) as in this example: I use TPoint() to set where the pointer will point. I know the starting point, bu...
asked by 01.07.2016 / 16:26
1
answer

Convert Html to Canvas

Is it possible to convert an html page to canvas? For example, do I have a page built in html5 and I wanted this page to be "minified" for just one tag? I do not want the html page to be rendered image. Ps .: Question at the level of knowledg...
asked by 06.04.2016 / 00:43
1
answer

Draw same javascript object on different canvas

I created a standardized function to speed up the design process in a project that involves multiple canvases.    Thank you for the collaboration of bfavaretto link See the function: (it works correctly) var drawIt = function (canva...
asked by 04.03.2014 / 17:12
1
answer

Is there any way to manipulate the brightness of the image through Canvas?

I am developing a system where the user can make small adjustments in images, being able to rotate and cut currently. Before this whole part was being done through coordinates, where I sent the parameters to the server and from there processed t...
asked by 11.05.2017 / 16:58
1
answer

Is it possible to save the canvas as image, and send it to the server?

Let's say I have code similar to this: <html> <head> <style> .centralizado { position: fixed; top: 50%; left: 50%; transform: transla...
asked by 07.05.2017 / 11:07
1
answer

Reference not found for object property

I developed a simple particle code in codepen.io and in its execution it generates a log with the error: Uncaught TypeError: Cannot read property 'color' of undefined What is the reason for the error? // inicia o canvas var canvas...
asked by 16.01.2015 / 14:22
1
answer

How do I delete a specific object on the HTML5 canvas?

Well, for example I have two rectangles drawn on canvas: const canvas = document.getElementById('canvas') const context = canvas.getContext('2d'); context.fillRect(20,20,150,100); context.fillRect(300,300,150,100); <canvas id="c...
asked by 27.07.2018 / 16:33
2
answers

Create a canvas animation on video

I'm doing a small web application where I need to, from some coordinates make a box (rectangle) move frame by frame. In my code I have been able to extract the current frame of the video but I can not make the box move frame by frame, follow the...
asked by 29.04.2016 / 00:35
1
answer

Force show extension when downloading via javascript

I have this image resizing screen:    whenIclickondownload,thisscreenappearstosavethefile,butasyoucansee,thefileappearswithouttheextension,howcanImakethefileappearwiththeextensionautomaticallywhenitissaved? Ihavethefollowingcodetodownload:js...
asked by 28.02.2016 / 18:16
1
answer

zoom function in javascript

I would like to create a zoom function inside an extension file js, I already have a canvas function, however in my drawing it is coming out too small depending on the initial coordinates, so I would like something that when I needed I could giv...
asked by 04.05.2015 / 03:12