Questions tagged [vector-graphics]
Vector graphics is the use of geometrical primitives such as points, lines, curves, and shapes or polygon(s), which are all based on mathematical equations, to represent images in computer graphics. Images are drawn at run-time from the information stored, and so vector images do not get distorted after zoom/resize etc.
vector-graphics
1,149
questions
2
votes
0
answers
59
views
Position vector into global world position vector using a camera
I am programming a 2d rendering engine with opengl, imgui and c++.
The problem is to turn my mouse position into global world position using a camera.
This is my current code inside my ...
0
votes
1
answer
69
views
EasySVG library php addText function problems with locating the text
i have misunderstanding about locating the text in svg file via EasySVG.
I have an image in svg format 1200x1400px.
I need to put the text to place by setting coordinates.
require '../../lib/easysvg/...
1
vote
2
answers
51
views
I want to plot the route of a vector in a Lindenmayer system. How do I apply function to vector and get positions to plot?
This is my first question on stack overflow. I'm working on a script to plot a Lindenmayer-system. I already figured out how to do it by using the turtle package, but I would like to do it using ...
1
vote
1
answer
101
views
Pixels shown when saving colormap as vector graphics
I'm plotting (using pcolormesh) some colourmap figures to be added to my report written in Latex. I hope to save the figure as pdf so that I could use vector graphics in my report and Latex is happy ...
1
vote
1
answer
135
views
Java: Insert a JFreeChart graphic into a powerPoint (pptx) as a vectorGraphic
I am generating graphs which I have to export into a powerPoint. I figured out how to convert the graph into a png and insert it into the powerPoint. However this is not ideal, if you want to zoom ...
2
votes
2
answers
254
views
Reverse Bresenham algorithm? How to convert array of drawn pixels into coordinates
Does there exist an algorithm that can analyze an array of pixel coordinates, and return an array of line coordinates that, when drawn using Bresenham's algorithm, would generate lines that cover the ...
0
votes
1
answer
103
views
Semi circle with rounded lines with CSS or SVG
I need semicircle merged with two lines with rounded corners, something like image.
My attempt:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500">
<path style="fill: rgb(...
0
votes
1
answer
274
views
How to make this simple figure to an SVG xml path?
In the last two days I'm trying to recreate this icon into an svg which I got only as an image. I'm really new to SVG coding.
I tried to code it, but this is all what I got:
<svg width="100&...
0
votes
1
answer
41
views
In a drawing app based on vectors, how could you calculate all distinct closed regions when the user adds a freehand path to the drawing?
I'm looking to implement something similar to how Flash drawing worked. As follows:
The user uses the freehand drawing tool to draw an arbitrary path.
On finish of each path, the app calculates all ...
1
vote
0
answers
32
views
Stop the svg animation on a certain frame
I have an svg animation file. I want to stop this animation at a certain frame, for example frame 3. How to do it?
-1
votes
1
answer
136
views
Subpixel accuracy when drawing vector graphics in Qt?
I have written a small test script in Python and PySide6 to test the vector graphics capabilities of Qt, in particular the accuracy when it comes to the exact shapes and positions of the drawn figures....
0
votes
1
answer
102
views
Can you help me draw my 3D model of a chain to a specific direction?
With the code below I created a function to draw a 3D chain model in C# using the helix toolkit. This works exactly how I wanted to but... now I'm breaking my head around a good approach to draw the ...
0
votes
1
answer
152
views
Crop large GeoJson layer using a standard machine
I need to extract a portion of a large GeoJson layer. I've tried multiple times with QGis on a 16Gb Ram intel i7 11th gen processor with no result. After about one hour if the program does not crash, ...
0
votes
1
answer
258
views
Is it possible to have pixel hinting on vector graphics of an unknown size on a webpage?
Glyphs in typefaces for screens often use hinting to align the shapes with the screen pixels so the result has sharp edges. Could I do something similar with arbitrary vector graphics on a webpage?
I ...
5
votes
0
answers
249
views
How to geometrically project 3D xyz vectors onto a plane orthogonal to the surface normals of a triangulated surface? R
I'm solving an equation with OLS which returns a timing point on an x/y/z surface mesh. I can solve for speed and directionality per the method outlined below. The problem is, my vectors are not ...