Questions tagged as 'canvas'

1
answer

how to change the text color with canvas

I draw a string with canvas in this way: pdf.setFont("Helvetica", 16) # Dibujamos una cadena en la ubicación X,Y especificada pdf.drawString(230, 780, u"Contrato de CubanCloud") I want to know how to change the color that by def...
asked by 08.05.2017 / 18:25
1
answer

Copy CANVAS in image format

I have a design in CANVAS designed with the library of FabricJS , so I need to copy the canvas and return the image but keeping the CANVAS and the Image in the same section of the page. How could I achieve what I want? HTML &l...
asked by 04.07.2018 / 22:26
2
answers

Rotate canvas image

Estpy trying to make the image on the canvas stay diagonal This is what I have var imageObjCextrema = new Image() imageObjCextrema.onload = function() { ctx.drawImage(imageObjCextrema, 35, 250, 7, 50); } imageObjCextrema.src = 'img...
asked by 10.05.2017 / 15:25
2
answers

How to change the font color with canvas

I draw a string at the X, Y coordinates pdf.drawString(230, 780, u"Contrato de CubanCloud") Now I want that instead of leaving that chain in black, I want it to come out blue, please tell me how I can do it.     
asked by 08.05.2017 / 17:18
1
answer

Save a canvas capture?

I need a button to download and save me the canvas with name and extension ex: imagen.png in JavaScript . The image to be downloaded does not put the extension of .png , it is downloaded with the name of descarga and...
asked by 26.02.2017 / 20:46
2
answers

I need to outline figure with color

As you can see, it goes from the outline I need to fix it. I leave the codes here: link     
asked by 05.11.2018 / 00:02
1
answer

How to create an illusion of orbital rotation with a series of images in javascript

Hello friends, I need to speed up my work with some javascript tool or program that helps me to give the illusion through a series of photos (frames) that are shown frame by frame and give the illusion that while the mouse is being rotated aroun...
asked by 12.10.2018 / 22:29
1
answer

Add amount with javascript

I am working on a project to make a lucky spinner. Roulette is composed of several sections. Depending on which section you fall, a text is generated on the screen that tells you what you have won or lost. The idea is that as long as you fall...
asked by 16.10.2018 / 22:08
1
answer

JavaScript: .push is not a function

How are you? I'm practicing some JavaScript, since I'm new to it, and I'm trying to create a "space invaders" game with p5.js. I have made some progress, but, I have encountered a problem that I can not solve: var ship; var aliens = []; var m...
asked by 10.08.2018 / 01:37
1
answer

Pass parameter from an Activity to a Class

I have an ACTIVITY public class MainActivity extends AppCompatActivity implements SensorEventListener, View.OnClickListener { private SensorManager mSensorManager; private Sensor mAccelerometer; private Sensor mBrujula; pri...
asked by 26.02.2018 / 11:17