3,539 questions
2
votes
1
answer
127
views
How can I correctly save and restore Excalidraw drawings from localStorage in a component?
I’m working on a React component that uses Excalidraw, and I want to save and load drawings from localStorage so users don’t lose their work after refreshing the page.
import { Excalidraw } from "...
2
votes
2
answers
159
views
How to scale a font when using image/font.Drawer into an image?
I'm writing text into an image and I want this text to be scaled up (like doubled or tripled).
import (
"golang.org/x/image/font"
"golang.org/x/image/font/basicfont"...
0
votes
0
answers
30
views
in webgl how to display two quad's at a same time both with their own position?
Not able to see both rect and trap panel at a same time?Individually both are render with their proper position worldX but both at a same time with loop not.
i have this in editor.tsx =>
const ...
2
votes
3
answers
119
views
Trouble binding data to an IDrawable
I'm trying to put together an app, but I've run into problems trying to get data into an IDrawable graph display. The app is just supposed to show a plot of random data from a float[] which is then ...
0
votes
1
answer
67
views
AWS Lambda with Layers architecture diagram
I am working on designing a system in AWS. I need help understanding how to draw or represent a Lambda function with its layers.
Is there an icon in draw.io to represent a Lambda function with layers? ...
6
votes
0
answers
226
views
How to draw rounded rectangle in X11
I'm trying to draw a rounded rectangle in X11 using the following:
#include <X11/Xlib.h>
#include <stdlib.h>
int main() {
Display *display;
Window window;
GC gc;
XEvent ...
0
votes
1
answer
51
views
canvas Circle size changes in diffrent mobile phone in flutter app . I want to set a fixed size no matter the phone size
**I am trying to draw a 2 cm circle in Flutter that remains the same physical size across all mobile devices, regardless of screen resolution or pixel density.
Currently, I am using MediaQuery.of(...
-1
votes
1
answer
2k
views
IPython.display does not show any image at all but <IPython.core.display.Image object>
I am trying to show LangChain graph in my python module code. Not Jupiter notebook. However, the following code snippet:
from IPython.display import Image, display
from langgraph.graph import ...
0
votes
0
answers
71
views
Having trouble getting the correct position to draw my sprite to when rotating it
I'm having trouble drawing my animation to the correct position. I draw my animation from an atlas, and offset the position of the animation by how many pixels have been trimmed when packing the ...
0
votes
1
answer
104
views
Prevent backward tracing in iOS Drawing App (Swift)
I am using SwiftyDraw library to draw a path for my app. Drawing the path is working well but there is a problem if user start drawing path and move the finger back and forth in the same position. ...
0
votes
1
answer
99
views
in wxmaxima how can i put one picture from wxdraw3d inside another one from plot3d
I like the 3d plot figure : (load(implicit_plot),plot3d( 1,[theta, 0, %pi], [phi, 0, 2*%pi], same_xyz, [transform_xy, spherical_to_xyz],[grid,20,20],[color,black],palette,[png_file, "transform....
0
votes
1
answer
75
views
wxmaxima wxdraw , wxdraw2d, wxdraw3d. How to change output to a *.png file instead of terminal computer screen
I have successfully changed the output from default terminal screen to a *.png by for example.
[load(implicit_plot),
gnuplot_out_file[png,"gnu.png"],
implicit_plot(x^2+y^2-1,[x,-1,1],[y,...
1
vote
1
answer
341
views
Android Compose draw Path to erase foreground
I am educating myself by messing around a bit with the canvas in a Composable.
The idea I am looking for is to:
Have a background color ( in this case just doing a gradient of colors)
Black ...
-1
votes
2
answers
318
views
How to draw a circle using text characters on the Linux terminal using NASM?
I'm a university student and I don't get how to draw a circle or a rectangle. I'm printing text in a terminal window, not using lines, so it will technically look like a circle made with * characters.
...
1
vote
3
answers
105
views
Highlight specific x-axis elements in ggplot2 by drawing a circle around them
I have a sequence myseq associated to some data that I want to plot. Besides, I have another sequence checkseq that I want to compare myseq to.
The objective is to make a plot like the one below (with ...
4
votes
1
answer
130
views
Cross-hatched (Striped) BarMark in SwiftUI
I would like to have BarMark with cross-hatched pattern by using Charts in a SwiftUI project.
My data type is (Date, Double).
I created a chart like this:
struct ContentView: View {
struct ...
-3
votes
1
answer
66
views
Draw a square with asterisks '*' [closed]
I have a requirement to draw n number of squares with side length m in the following format:
Example: m=5;n=2;
Expected output
* * * * * * * *
* * *
* * *
* * *
* * *...
0
votes
1
answer
188
views
Blazor Webassembly Draw Interactive Lines Using Svg
I create a new blazor web app project like this: (https://i.sstatic.net/ejiES4vI.png)
It has 2 projects in 1 solution. When I wanted to get the mouse coordinates on the Client side of my project, I ...
0
votes
1
answer
116
views
HP Prime Draw Image with Python
I would like to play a video (with python) on my HP Prime G2. I know this sounds stupid but please.
So, I already converted the video to a list of pixels but I realise that drawing the pixels one by ...
-1
votes
1
answer
127
views
Build the ios Messages Chat Bubble(with bottom right and left tail ) in Android
I want to build the iOS-like Messages chat bubble in Android using the custom view class this is the code that I use to create the rounded corner rectangle and it will be based on the height and ...
0
votes
0
answers
53
views
Matplotlib: wrong positions of the cursors on a graph
In the program below, I want to place 2 vertical cursors at 2 defined positions on the ais x. The problem is that, as you can see in the screenshot, the cursors do not match the values chosen in the ...
0
votes
2
answers
152
views
How to straighten the lines of a path diagram using DiagrammeR?
I am interested to use DiagrammeR to draw a path diagram. The original codes I used generated a diagram with some curved lines. I tried to look for solutions online and I read this post DiagrammeR: ...
0
votes
1
answer
135
views
How to plot a simple line with mayavi?
Apparently, I do not understand how to plot a simple line with mayavi. According to the docs, I should use mlab.plot3d, where the first three arguments x, y, z contain the coordinates:
x, y, z and s ...
0
votes
1
answer
62
views
How do I draw a circle in pygame using a class? [duplicate]
I am trying to build a little space invaders type of game, and I want to draw many things while using a class (in order to be more efficient). However, while my program does run when I want it to, it ...
0
votes
1
answer
136
views
I want to know how to draw arrow that satisfy special conditions in Pine Script version 5
Seniors.
I am trying to draw an arrow that satisfies this special condition with pine script.
The conditions are follow as:
-If a low is colored dark green and its value is higher than or equal to the ...
0
votes
1
answer
467
views
Draw a line in pinescript v5
I wrote a code in pine script v5 for drawing a horizontal line from open of a Bullish engulfing candle to the right side for 100 candle but it should be stop drawing when a candle crossover or cross ...
0
votes
1
answer
162
views
C# MonoGame sprite color issue
I have a problem regarding displaying sprite where the texture seams to be properly loaded (at least I don't receive any error messages even when removing the if condition) but when I displaye it all ...
1
vote
2
answers
208
views
How do I increase the speed of an object inside my java processing app without sacrificing the frames
Okay so I am learning how to make games and stuff in java and I am using processing in that i am trying to generate a ellipse that will move constantly when fired, how I am animating is in draw() ...
1
vote
2
answers
197
views
Drawing function, according to the instructions from a text file
I have implemented a small program, that has one function to open and read a text file with instructions for drawing, whereas the second one is targeted at drawing. The second one was already utilised,...
1
vote
0
answers
139
views
Obtaining fill with FMX.Objects.TPath mixed drawing order
When drawing with Firemonkey FMX.Objects.TPath, I want to draw in a mixed drawing order. The drawing fill must be painted correctly.
How can I do that?
(The drawings come in mixed order. Putting these ...
4
votes
1
answer
1k
views
How to create a custom Shape in SwiftUI with rounded top corners and a jagged bottom edge resembling torn paper?
I am working with SwiftUI and need to implement a custom Shape that mimics a specific design. The shape is a rectangle but with distinct features: the top corners are rounded, and the bottom edge ...
-1
votes
2
answers
144
views
Canvas draw line is blurred even if devicePixelRatio (DPR) is 1
is anyone able to explain why in DPR==1 line at whole pixel is still blurred?
https://codepen.io/Ondej-Spilka/pen/LYvrpby
var canvas = document.getElementById('myCanvas');
var context = canvas....
0
votes
1
answer
194
views
Changing Object Names Based on Initial Object Size Calculation in Coreldraw
I would like to ask. "Previously, I have already created Object Names A-Z on the Green Line" and I'm trying to create a VBA code, here's the code:
works manually by selecting 2 objects
Sub ...
0
votes
1
answer
140
views
How to draw filled letters (e.g. O) without write() in turtle
I created a code and easily got letters, but now I just understood that I don't know how to make them fill. I made only an E and an L and by this site user help G, but I don't understand how to make O ...
0
votes
1
answer
129
views
"VBA CorelDraw "Rename Object A-Z not in order
I have created a script to rename objects in CorelDraw according to alphabetical order. This script should work as expected, but I don't know why the sequence is from Z to A.
Screenshots on the left ...
0
votes
1
answer
343
views
when is ipycanvas drawing on the canvas? Or how to force it?
I try to write something like a minigame in Jupyter for my students, where they learn like in Swift playgrounds how a figure is behaving when applying different commands.
I wrote the following:
from ...
0
votes
1
answer
276
views
Changing the Name of an Object Based on the Selected Object with VBA
This macro works by selecting 2 objects. The object that has been previously named is called 'A', and the other object's name is RANDOM. I hope that with this macro, I can change the name of the ...
0
votes
1
answer
104
views
how to do it in openlayer like leaflet draw style editor
I have researched and searched many times and can't find examples of style editors on openlayers. Available only on leaflets. Please share your experience, how should I write it?
It's fine if you ...
1
vote
1
answer
107
views
How to draw filled letters (e.g. OLEG) without write() in turtle
I created a code and easily got letters, but now I just understood that I don't know how to make them fill. I made only an E and an L, but I don't understand how to make O and G fill.
This is what I ...
1
vote
1
answer
73
views
Performance slowdown and inaccuracies in stroke rendering due to float-based distance calculation in drawing
Description:
I'm currently working on a Drawing application and facing challenges with stroke rendering due to the use of float-based distance calculations.
While attempting to convert integer ...
-1
votes
1
answer
53
views
In julia gamezero i want to programatically change the tint of a draw object. However, colorant doesnt allow variables to be substituted into strings [closed]
Draw(somethin,colorant'blue'). I want to change colour programmatically and do
Draw(somethin, colorant'rgb($(val),$(val),$(val))'). This doesnt work. Nor does concatenation with *. Any ideas
Draw ...
0
votes
1
answer
116
views
Need Help How To Draw Both Arabic And English Words Char By Char
I'm trying to draw the same text from textBox to Panel char By Char For both Arabic & English with the same char size and position also style and color my code works perfectly if the text is ...
0
votes
1
answer
32
views
matplotlib plot not updating after the plot is first shown with .show
I'm new to matplotlib and can't find out how to update my plot once I enter new values for the lines displayed in the plot. Showing the plots with the values that I entered first works without an ...
-1
votes
2
answers
173
views
Having some issues with Void Draw in Processing
void setup() {
size(500,500);
background(#87ceeb);
fill(#567d46);
rect(0,height/2,500,height/2);
fill(#FFA500);
circle(50,50,75);
// Cloud 1
noStroke();
fill(#...
0
votes
1
answer
53
views
How would I redraw the lives count in my game
I'm making a game in which you try to click the darker circle from a group of randomly placed circles. When you click the correct circle, it re-randomizes it. When you click the incorrect circle, it's ...
0
votes
1
answer
79
views
Issue with Sequential Touch Points in Using CALayer for Drawing in Swift
I'm encountering an issue with my drawing functionality in Swift, specifically when using CALayer instead of UIBezierPath. Here's the problem I'm facing:
I am creating a texture from an image and ...
5
votes
1
answer
264
views
How to optimize rendering performance when drawing a large number of animated shapes on a JavaFX canvas
I'm using Javafx to achieve the same effect in an HTML5 demo, but with Javafx the frame rate is very low
how do I optimize it, am I writing it incorrectly or is there another better way to achieve it.
...
1
vote
1
answer
81
views
Drawing issue in pygame
I am trying to make a relatively simple game in pygame:
import pygame as pg
import sys
import math
# game settings
RES = WIDTH, HEIGHT = 1600, 900
FPS = 60
PLAYER_POS = 1.5, 5 #mini_map
PLAYER_ANGLE ...
3
votes
2
answers
184
views
Draw Semi Ring of Equal Parts in JavaFX
I am working on a personal project and I want the user to be able to use a simple version of a radial menu. I have been trying to create a ring that is made up of N arcs (or another shape) I want it ...
-1
votes
1
answer
64
views
How to determine the three-point coordinates of a vector arrow [duplicate]
i want to draw a vector whenever i drag the object which is a ball. I have drawn a segment, the remaining thing is to draw an arrow indicating the direction of the vector. But I can't determine the ...