Questions tagged as 'canvas'

0
answers

Margin or Padding, Chart JS

Is there a way to increase the space between the bar and the edge? otherwise, Can the red bar be thinner? link var canvas = document.getElementById('myChart'); var data = { labels: ["January"], datasets: [...
asked by 05.06.2017 / 17:43
1
answer

Modular web in PHP .. I update the whole page, what is the best way to do it?

I have this code: <?php include("FOLDER1/archivos/MENU.php"); ?> <?PHP if (isset($_GET['id'])) { if (!empty($_GET['id']) && $_GET['id'] != "index") { if (file_exists("./FOLDER1/".$_GET['id'].".php")) { include ("....
asked by 21.11.2016 / 21:59
0
answers

Save an image from the img tag

I'm trying to save an image created on a tag from canvas , the detail is that I do not know how to save it and send it through AJAX and then save it in a specific location. HTML <div class="col-md-5"> <canvas id="canvas">...
asked by 10.09.2016 / 17:04
1
answer

Problem with game Pong: the AI is not fluid [closed]

I have developed a Pong game that has the following code (commented): //declar dos variables, canvas va a manejar toda la informacion de las dimenciones del area y canvasContext va a tener la informacion grafica como circulos triangulos...
asked by 28.12.2018 / 22:19
1
answer

Apply motion to RectF Canvas Android

Hi everyone, I hope you are well, I am new working with canvas on android and I have the following problem. Create two RectF to do a test @Override protected void onDraw(Canvas canvas) { mRectSquare.left = 0; mRectSquare.top =...
asked by 23.10.2018 / 14:50
1
answer

How do I change a canvas color with a click on html5?

Excuse me but I would like to know how I can change a canvas color by the method of clicking on the drawing. It's for another type of work but I just want the method of clicking on the drawing and making an action.     
asked by 01.05.2018 / 10:17
1
answer

Does not show data [closed]

// esta es la clase con su respectiva funcion para que pueda ser mostrado en el grafico <?php include_once '../SQL/ClasePDO.php'; class data { public function grafico() { header('Content-Type: application/json'); $data_...
asked by 29.05.2017 / 17:33