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,148
questions
1
vote
0
answers
32
views
How to make take-vector-screenshot work with PyCharm (under Ubuntu 22.04)?
My goal is to take vector screenshots of my Python development IDE.
I am using PyCharm community edition under Ubuntu 22.04.
I have the package gtk-vector-screenshot installed (see https://launchpad....
5
votes
1
answer
116
views
How to find the greatest possible euclidean distance we can achieve by moving using given set of vectors
That's a problem from Polish Olympiad in Informatics, called Pionek (PIO).
Given a set of not unique vectors, find the greatest possible euclidean distance in reference to (0,0) point you can achieve ...
0
votes
0
answers
51
views
SVG Path: Have a non-scaling cruve with scaling lines
As usual, the question indicated as a duplicate has outdated or incoherent answers
This question is about SVGs
I'm not interested by "hacks" with box shadows or pseudo elements, they ...
0
votes
0
answers
43
views
ERROR org.geoserver.platform.ServiceException: Creating maps using application/vnd.mapbox-vector-tile is not allowed
After installing tiling vectortiles plugin to geoserver .2.25 we have got an error
08 Apr 15:29:48 ERROR [geowebcache.GeoWebCacheDispatcher] - Problem communicating with GeoServer http://geo.server....
0
votes
1
answer
61
views
Replacing raster images in a PDF with vector images
I'm looking to do the exact opposite of what this person wanted to do: Replacing vector images in a PDF with raster images
In other words, I want to take pdfs with a mix of raster and vector images ...
0
votes
0
answers
81
views
Generating random SVG arrow shapes
So I have a task, which intends to generate random SVG images of curved entangled arrows.
Here are few examples of the expected output:
Example 1
Example 2
Example 3
There are few main requirements:
...
0
votes
1
answer
97
views
Issues Automating White Removal from Color Images Trace with Custom Preset in Illustrator with Adobe Bridge or New Script
I am trying to automate the process of image tracing images in Illustrator. I have a good system with black and white images where I can create an action to trace, save as SVG and remove white after ...
0
votes
0
answers
80
views
Difficulties with understanding the SVG spec's description of the "vector-effect" attribute
I'm having some trouble understanding the information that's being conveyed in the SVG specification's description of vector effects. Specifically, the text describing the "viewport" and &...
0
votes
2
answers
87
views
Is there an equivalent to the vector-effect property that can be applied to the SVG itself rather than each individual path?
I am showing maps of US state counties via SVG. The issue is that I want each state to be displayed at relatively the same size and what ends up happening is that the stroke-width ends up looking much ...
1
vote
2
answers
210
views
Extracting vector line segments from an image
I'm trying to find the edges on satellite imagery. While I've tried using canny edge detection, I've found much better results by passing the imagery through a structured random forests model ...
0
votes
1
answer
199
views
How to Export OSM Maps / Plots Into Vector Graphics Using Python Plotly
Taking this example from the manual,
import pandas as pd
us_cities = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/us-cities-top-1k.csv")
import plotly.express as px
...
0
votes
5
answers
296
views
Simplify any SVG path to create a solid black shape (UPDATED)
Is it possible to transform any SVG into a solid black shape in an automated way (in javascript or otherwise) by simplifying the path?
Is there a library to do this, or is there another way?
Let's ...
0
votes
1
answer
84
views
Vector rotation of text in a given font and rendering it (in Python)
I want to write a program that I can give a font-path, a string and a rotation-angle, which then renders the (vectorially) rotated text to a png.
I have gone through several libraries, such as skia, ...
1
vote
1
answer
74
views
SVG Clip Path Behavior under Translate Transforms
I am seeking the wisdom of the StackOverflow community to clarify my understanding of the clip-path feature in the SVG 1.1 specifications, particularly under multiple translate transformations.
I have ...
0
votes
1
answer
97
views
How to calculate if a triangle is back-facing or front facing in Vulkan
In this page:
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFrontFace.html
They give this equation:
How would you apply that formula for example to a triangle with these ...