Questions tagged as 'canvas'

1
answer

Move sprite to the position of the mouse with Phaser

I need to move a sprite to the mouse position, I used the game.physics.arcade.moveToPointer() function, but only works with sprites that have the body of type Phaser.Physics.Arcade . How do I use this function using a body...
asked by 27.02.2018 / 06:19
0
answers

Change color according to music beat

I'm creating a Music Player and I need the frequency bars to change color according to the strongest beats. I was able to do this link but it is very fast.     
asked by 07.11.2017 / 00:03
0
answers

ns_error_not_available when put on the web server

I did a mini game on localhost and everything was working perfectly .. Then I uploaded it to the web server and the game started to crash with the error "NS_ERROR_NOT_AVAILABLE:". ... var spriteSheet = new Image(); var player = new Sprite(spri...
asked by 05.11.2017 / 19:09
1
answer

Problem with events in VueJS 2

I found a code at a time and modified it in pure javascript. It worked right. But now I have to do something similar to what he does in vue. The problem is that I'm half-new in the vue and have little time to finish. NOTE: Basically the funct...
asked by 18.07.2017 / 19:00
1
answer

Button to enable drawing and clean the canvas [closed]

// forked from makc's "Simplify this three.js drawing exmple" http://jsdo.it/makc/zXNX var mouse = { x: 0, y: 0, down: false }; var scene, camera, renderer, raycaster = new THREE.Raycaster (), mesh; var canvas = document.createElement...
asked by 21.06.2017 / 20:13
0
answers

Search Array with certain characteristics

Hello, I'm developing a very basic game with Javascript, but I came across a little something that I could not solve until now, the question would be, I have an Array, in which I randomly include 28 objects, and those objects have a position < st...
asked by 07.06.2017 / 07:21
0
answers

Generate a PDF of a Morris Chart

I'm developing an application that generates a report using the Morris graphics ( link ) The charts are working correctly, now I need to generate a PDF of this chart. However, I came across that to do this, when the SVG chart is different....
asked by 20.03.2017 / 20:46
0
answers

Responsive canvas effect

I have a responsive web page where I have a lights effect using the canvas. It turns out that the effect should only stay on the banner area, I made a method here using the negative margin-top, but the result was not good, and the effect often e...
asked by 31.01.2017 / 01:45
0
answers

How to link image on canvas with an object

I have the following class: class Sapo { private Image imgSapo; public int IdSapo { get; } public Sapo(int id) { imgSapo = new Image(); IdSapo = id; } public Image show { get {...
asked by 28.11.2016 / 17:33
0
answers

Problem with minimum size in chart chart

var config = { type: 'radar', data: { labels: ["Confiança", "Atividade", "Juros", "Condições de financiamento", "Concessões reais", "Atratividade do Financiamento Imobiliário", "Emprego", "Massa salarial", "Atratividade do...
asked by 26.07.2016 / 16:10