36,049 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
93
views
Xcode Preview crash with ModelContainer initialization
Background:
I have complex Swift Data models with some Relationships, and at some point, my Xcode Preview is no longer working when I want to init a ModelContainer in it. So I tried to debug and ...
4
votes
1
answer
103
views
Canvas 2D hidden line removal for 3D wireframe - depth buffer approach fails on complex meshes
I'm implementing hidden line removal for a 3D wireframe renderer using HTML5 Canvas 2D. When rendering a solid object with wireframe overlay, edges behind solid faces should be hidden.
Drag to rotate. ...
0
votes
1
answer
49
views
cropper.js has a fixed container ratio?
Using cropper with a fixed aspect ratio and a specific display size of 150x200. Once an image is drawn to the canvas, the canvas (or rather its container) seems to expand to an even square or a 1:1 ...
1
vote
1
answer
147
views
Canvas Transform and Paint in Flutter
I want to achieve a transformation on the canvas using two fingers for rotation, scaling, and translation, while using one finger to paint in the correct position.
What I have so far:
import 'package:...
2
votes
1
answer
109
views
Using FitWidth and FitHeight results in a snapshot with a smaller rendered image than expected
Intro
The following code implements a draw-by-brush on an image using a canvas. The Idea is to stack a Canvas object over an ImageView, draw on it, and finally render the StackPane (image + canvas) ...
3
votes
0
answers
70
views
WebGL canvas `toBlob()` result shows glitched color spots not seen on the canvas (cause: invalid pixel value for premultipliedAlpha)
In the below code snippet, I draw a texture on a canvas on the left, and then call canvas.toBlob() and display the result in an <img> on the right. The resulting image has a cyan glitchy spot:
...
2
votes
0
answers
88
views
How to Animate using Canvas in Angular
I am trying to code an animated progress wheel in Angular 20. My animation works in a vanilla javascript environment, but when ported to Angular, nothing draws on the canvas and I'm not sure why. I've ...
Advice
1
vote
4
replies
146
views
Delphi 2010 How to save a TImage with a TPaintbox drawing overlaid?
I have a TImage bitmap on a form, and a TPaintBox with the same dimensions. The user draws some polylines on the paintbox canvas. Using paintbox means they can "erase" a line if needed and ...
0
votes
1
answer
107
views
Why does the Tkinter canvas-leave event behave differently in Windows 11 and Linux Mint?
When the cursor is moved from the green canvas into the red frame, under Windows 11 a leave-event is created, but under Linux Mint no leave-event is created.
What is the explanation for this? How can ...
0
votes
0
answers
30
views
tkint canvas text change without root.after()
Whatever I try , TKint refuses to update my canvas text twice. I have to use root.after() to change the text twice. If I do not use root.after(), which does not work, looks below:
def guess(words):
...
Advice
0
votes
0
replies
78
views
Webgl Threejs canvas performance optimization
Hi guys i am trying to make a website with 3d model in it and you can apply patterns designs texts stickers on the model i am doing it with canvas atlas which is every assets renders inside the oen ...
3
votes
1
answer
796
views
SwiftUI preview not working in Xcode 26 when "Automatically Refresh Canvas" is enabled
After updating to Xcode 26, I’m no longer able to load SwiftUI previews in new projects. The preview pane shows the error:
Cannot preview in this file.
Interestingly, if I disable "Automatically ...
1
vote
0
answers
132
views
three.js: How do I wait for the <canvas> image to update for each render?
Calling renderer.render() in a requestAnimationFrame() loop will often fire faster than the <canvas> element can update its image, making any "true" FPS measurement inaccurate.
In ...
0
votes
0
answers
54
views
videoElement freezes or glitches in WebKit WebView
I'm experiencing an issue in a WebKit WebView environment where a videoElement either freezes or shows corrupted frames.
I'm using @mediapipe/tasks-vision to perform face-detection-based data ...
0
votes
1
answer
115
views
HTML Canvas not rendering ellipses properly
The ellipse() command in HTML Canvas does not render properly, as may be seen in the below snippet and screenshot:
I have given the ellipse a center (117.5, 51), with radiusX = 4 and radiusY = 3.5. ...