'''
Copyright (C) 2006 Aaron Spike, aaron@ekips.org
Copyright (C) 2010 Nicolas Dufour, nicoduf@yahoo.fr (color options)
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
'''
# standard library
import random
import copy
# local library
import inkex
import simplestyle
help="Do not create a copy, modify the markers")
help="Replace the markers' fill with the object stroke or fill color")
help="Assign the object fill and stroke alpha to the markers")
help="Invert fill and stroke colors")
help="Assign a fill color to the markers")
help="Choose a custom fill color")
help="Assign a stroke color to the markers")
help="Choose a custom fill color")
dest="tab",
help="The selected UI-tab when OK was pressed")
dest="colortab",
help="The selected cutom color tab when OK was pressed")
if defs == None:
try:
except:
continue
# Use object colors
else:
else:
# Choose custom colors
fill = "none";
stroke = "none";
try:
else:
except:
continue
if (not('stroke' in cstyle and self.options.tab == '"object"' and cstyle['stroke'] == 'none' and self.options.fill_type == "filled")):
if 'stroke_opacity' in locals():
if (not('fill' in cstyle and self.options.tab == '"object"' and cstyle['fill'] == 'none' and self.options.fill_type == "solid")):
if 'fill_opacity' in locals():
if __name__ == '__main__':
e = MyEffect()
e.affect()
# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99