ink2canvas.py revision 9f5fa9df7a370b2041854ddc23b55b786b538478
'''
Copyright (C) 2011 Karlisson Bezerra <contact@hacktoon.com>
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
'''
import inkex
import sys
# remove namespace part from "{http://www.w3.org/2000/svg}elem"
# get the gradient element
# get the color stops
colors = []
else:
pass
return
continue
gradient = None
clip = None
# creates a instance of 'elem'
# similar to 'elem = Rect(tag, node, ctx)'
if elem.has_gradient():
"""Applies the effect"""
if __name__ == "__main__":
ink = Ink2Canvas()