Category "canvas"

Let user delete a selected fabric js object

I have a simple fabric js based application where I will let users add shapes connect them and animate them. Following is my JS var canvas; window.newAnimat

Dynamically resize the pixi stage and it's contents on window resize and window load

I'm trying to dynamically resize the pixi stage (canvas and contents) on window resize. And also have it initially load at the size of the browser window witho

Update HTML5 canvas rectangle on hover?

I've got some code which draws a rectangle on a canvas, but I want that rectangle to change color when I hover the mouse over it. The problem is after I've dra

set the canvas size - Android

I want to keep the same size of the bitmap for the canvas, because when I add the custom view to the LinearLayout shows the canvas with different size and I wan

Does Canvas redraw itself every time anything changes?

I have done some research on how canvas works. It is supposed to be "immediate mode" means that it does not remember what its drawing looks like, only the bitma

Does Canvas redraw itself every time anything changes?

I have done some research on how canvas works. It is supposed to be "immediate mode" means that it does not remember what its drawing looks like, only the bitma

Canvas - Combing two images, return one img html object?

I have two html img objects with different src urls. I'd like to combine these two images (using canvas), and create one merged img object. Is this possible? H

How to change axis font in PrimeFaces and Chart.js

I am using PrimeFaces 7, and I am trying to use barchart from Chart.js as follows: Code: <p:barChart widgetVar="cfg" model="#{dashboardBean.barModel}" styl

How to convert a canvas to a png file?

I want to convert a canvas to a png file and save it in order to do comparison tests with Cypress. The problem is that the file I create is empty. cy.get('#imgc

IllegalArgumentException: width and height must be > 0 while loading Bitmap from View

I'm trying to draw on an ImageViewTouch, a library which enables pinch zooming. I'm able to draw over the image using Canvas, but when I zoom the image, the dra