3,537 questions
Tooling
0
votes
0
replies
86
views
Tree-like data structure visualization/representation/drawing
There's a tree data structure with string nodes.
Is there a framework/library to draw this structured text tree into graphic context (CGContext)?
it's about calculating correct layout to represent it
...
1
vote
1
answer
36
views
Transform inside a subroutine does not work (with draw)
I'm trying to define a subroutine to draw a sphere to be used inside the draw routines
sphere(radius,coords) := block([t],
transform = [x+coords[1] , y+coords[2] , z+coords[3], x, y, z],
...
Tooling
0
votes
0
replies
46
views
Sphinx/RST: is it possible to draw ascii text in Sphinx with ReStructredText?
Is it possible to draw simple images and diagrams directly out of ASCII text in Sphinx?
Something like AsciiDraw or AsciiFlow but directly visible in the RST file and then rendered automatically to a ...
3
votes
1
answer
561
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
218
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"...
3
votes
3
answers
159
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
114
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
298
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
56
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
81
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
117
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
145
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.png&...
0
votes
1
answer
118
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
441
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 ...