interp-att-g.py revision c110014789ad94604fdedfc0a96b370eea1631d7
'''
Copyright (C) 2009 Aurelio A. Heckert, aurium (a) gmail dot 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
'''
help="Attribute to be interpolated.")
dest="att_other",
help="Other atribute (for a limited UI).")
dest="att_other_type",
help="The other attribute type.")
dest="att_other_where",
help="That is a tag attribute or a style attribute?")
help="Initial interpolation value.")
help="End interpolation value.")
help="Values unit.")
def getColorValues(self):
# There are separators. That must be a integer RGB color definition.
else:
# There is no separator. That must be a Hex RGB color definition.
else: #the len must be 6
def getNumberValues(self):
def getTotElements(self):
# multiple selection
path = '//*[@id="%s"]' % i
else:
# must be a group
for i in self.collection:
else:
else:
#inkex.errormsg( 'R+: '+ str( self.R_inc ) )
#inkex.errormsg( 'G+: '+ str( self.G_inc ) )
#inkex.errormsg( 'B+: '+ str( self.B_inc ) )
val = 'rgb('+ \
else:
else: # inte_att_type == 'int'
else:
if t == None: t = ""
else:
else: # self.where == 'tag':
else:
if __name__ == '__main__':
e = InterpAttG()
e.affect()