项目作者: Husain0007

项目描述 :
A simple program to edit colors in an svg image using the HTML Color Picker element.
高级语言: HTML
项目地址: git://github.com/Husain0007/SVG-ColorEditor.git
创建时间: 2020-05-04T10:32:55Z
项目社区:https://github.com/Husain0007/SVG-ColorEditor

开源协议:

下载


SVG-ColorEditor

A simple program to edit colors in an svg image using the HTML Color Picker element.

The entire process is made to run on only one thread, by using a Javascript Promise instance.

The program first taken in an input svg Image.

The SVG-File is then parsed using a DOMParser, and non empty fill attributes are collected from the polygon and path tags.

These values are then stored in actionable buttons. Clicking a button selects the color we want to replace in the SVG, and subsequent pick of a color from the Color Picker changes all instances of the selected color to the new color.

A freely obtained svg from svgstudio in included in the repository .