Python SVG helper. set svg color, etc.
Project description
svghelper
Python SVG helper. set svg color, etc.
Install
python -m pip install svghelper
Method Overview
set_svg_color(input_file: str, output_file: str, color: str)
-input_file
is source,output_file
is result.color
argument should be 6 digits string color like#FF0000
.
Example
Code Sample
import python_set_svg_color
# Copy capture.svg as capture2.svg and change the major color of it to #FF0000(red)
python_set_svg_color.set_svg_color('capture.svg', 'capture2.svg', '#FF0000')
Result
Before
After
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
svghelper-0.0.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for svghelper-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 971097ffaee5889ad159efbbf99c672db7ccf54ef2f154fc54549c3dee581439 |
|
MD5 | 4d3e4efe2b2706ddcd64a3acffa1c5a2 |
|
BLAKE2b-256 | 7db58aae92c7f0d3b149378533b414e1bd3542a2e4d210c52db524d8fa432345 |