Questions tagged [canvas]

Canvas is a generic term for the drawing surface used with many free-form graphics output APIs. Use this tag with other tags that indicate the specific graphics API that is being used along with the programming language and the target environment: [android], [uwp], [wpf], [tkinter], [java], [html5], [chart.js] etc. Also include a specific canvas tag such as [android-canvas], [html5-canvas], [tkinter-canvas] if appropriate.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Make the contents of a tabControl tab scrollable while it still functions as a tab - tkinter

TKINTER - I have a simple GUI which makes use of some tabControl tabs. I would like to make the contents of a tab (multiple widgets) scrollable. I have figured out how to make an entire window with ...
1
vote
0answers
11 views

React - Canvas window does not work after centering

I'm building a web app using React. I am trying to add a canvas window in which you can draw freely. but when I center this window I can no longer draw on it. if the canvas isn't centered it works ...
0
votes
0answers
14 views

Canvas not getting to correct size

I'm trying to scale my canvas upto full height and width of the user's screen without using css as it just zooms the canvas in giving blurry objects on Canvas I used area.height = html....
0
votes
0answers
13 views

How to display a value from a segment on Duval Triangle using canvas? [closed]

I'm trying to identify segments from the example for Duval Triangle and display the result according triangle segment values Legend conditions: var legendTexts=['PD = Partial Discharge','T1 = Thermal ...
-2
votes
0answers
34 views

I need help in this , im new at coding [closed]

why does when i run this code, the "food" is never on the same pixel as the snake . also don't mind about the moving square at the start. var up = false; var down = false; var left = ...
-3
votes
0answers
13 views

How can is send data to canvas from my angular component [closed]

I am using canvas to draw lines to show how various entities are linked. i want to change color of some lines on clicking ..want to know how to send information from these entities box to canvas.
-1
votes
0answers
6 views

FabricJS Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported

I'm using fabricjs and canvas to make some design. When I try to save to my canvas using code canvas.toDataURL() I got error: Uncaught DOMException: Failed to execute 'toDataURL' on '...
-1
votes
1answer
18 views

Instatiation of UI prefab as child of UI parent

I trying a method of instatiation TMP inside of canvas. When my prefab appears it's size different from original prefab, I don't know what is the problem. public GameObject MyParent; public ...
-1
votes
0answers
11 views

Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data

I know this has been talked about a lot but I still cannot find a solution to this problem: When running this code, extracted from this tutorial I get the error in the tittle of this post at the line ...
0
votes
1answer
26 views

scrollbar with grid in tkinter python

Here is my code (so sorry if it's too long). And I want to create 1 vertical scroll bar. Because I have a lot of lines and I put it in a scrollbar so I can scroll to see the lines that the GUI can't ...
0
votes
0answers
23 views

How can an infinite canvas be implemented with Flutter

I'm looking into how to do an infinite canvas as seen in several popular design tools. I'm relatively new to flutter and from what I've found so far it's unclear what widgets I could use for this. I ...
0
votes
0answers
18 views

How would you implement collision detection of circles using only vanilla JavaScript and HTML canvas?

I am new to programming, so i might mess something up, but I would think you would make a class to draw circles and/or squares and just keep calling new instances of that class. But I can't figure out ...
0
votes
0answers
18 views

Draw a 2D canvas as 3D

I have this working as is but is in a "birds eye view" looking down. I was thinking about adding a z field for each Body element to simulate the depth of it being closer or further away from ...
0
votes
0answers
15 views

Canvas Fail IOS

I'm trying to see my preview on the canvas but I get this error, can this be fixed or can I only work by running my app on a physical device? building for iOS Simulator, but linking in dylib built ...
1
vote
0answers
15 views

html2 canvas decrase the image quality while rendering

Hi i've been trying to build a template poster creator with html2canvas. When i try to render my canvas, its quilty decrease unexpectedly. Here is the real canvas photo: The rendering result is : ...

15 30 50 per page
1
2 3 4 5
2290