Q: How to Generate a Rotated linearGradient whose angle will stick?
Hi all,
I am resending this to the *-devel list due to getting now answers on the user list and someone suggesting on the list that I send it here.
---------------------------------------------------
Q: in my extension I have this:
class StyleEffect(GenericAddPathEffect): def effect(self): self.xpathSingle(u'svg:defs').insert(0, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="bk2hp_grad"> <stop style="stop-color:#0000ff;stop-opacity:1" offset="0" id="b2h_0" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.4" id="b2h_1" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.6" id="b2h_2" /> <stop style="stop-color:#0000ff;stop-opacity:1" offset="1" id="b2h_3" /> </svg:linearGradient>''') ) self.xpathSingle(u'svg:defs').insert(1, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="bk2hp_grad_rot" gradientTransform="rotate(90)" xlink:href="#bk2hp_grad" />''') ) self.xpathSingle(u'//*[@id="' + main_path_id() + '"]').set( 'style', simplestyle.formatStyle({ 'stroke': '#888888', 'stroke-width': '1pt', 'fill': 'url(#bk2hp_grad_rot)', } ))
Which generates a linearGradient and a rotated version of it. However, when I move the path filled with the rotation, it reverts to the non-rotated version.
I'm attaching it here. Why is Inkscape doing it? Is it a bug?
You can find the extension in question here:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
Regards,
Shlomi Fish
Hi Jabier,
On Tue, 11 Jun 2013 19:57:30 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
is standard,or have namespace gradientTransform="rotate(90)"?
I don't understand. What do you want to say?
Regards,
Shlomi Fish
hi, jabier.
El mar, 11-06-2013 a las 20:10 +0300, Shlomi Fish escribió:
gradientTransform="rotate(90)"
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
nothing about it sorry.
El mar, 11-06-2013 a las 21:11 +0300, Shlomi Fish escribió:
Hi Jabier,
On Tue, 11 Jun 2013 19:57:30 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
is standard,or have namespace gradientTransform="rotate(90)"?
I don't understand. What do you want to say?
Regards,
Shlomi Fish
hi, jabier.
El mar, 11-06-2013 a las 20:10 +0300, Shlomi Fish escribió:
gradientTransform="rotate(90)"
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
your extension bring me: Traceback (most recent call last): File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 381, in <module> e.affect() File "/usr/share/inkscape/extensions/inkex.py", line 267, in affect self.effect() File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 86, in effect letterElement = self.selected[self.options.ids[0]] KeyError: 'back' Traceback (most recent call last): File "shlomif_back_to_homepage_distort.py", line 212, in <module> distort_e.calc_out_fn() File "/usr/lib/python2.7/subprocess.py", line 544, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['python', '/home/jtx/.config/inkscape/extensions/bezierenvelope.py', '--id=back', '--id=for_envelope_path', '/tmp/tmp_6RFEd/with_path.svg']' returned non-zero exit status 1
El mar, 11-06-2013 a las 20:10 +0300, Shlomi Fish escribió:
Hi all,
I am resending this to the *-devel list due to getting now answers on the user list and someone suggesting on the list that I send it here.
Q: in my extension I have this:
class StyleEffect(GenericAddPathEffect): def effect(self): self.xpathSingle(u'svg:defs').insert(0, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="bk2hp_grad"> <stop style="stop-color:#0000ff;stop-opacity:1" offset="0" id="b2h_0" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.4" id="b2h_1" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.6" id="b2h_2" /> <stop style="stop-color:#0000ff;stop-opacity:1" offset="1" id="b2h_3" /> </svg:linearGradient>''') ) self.xpathSingle(u'svg:defs').insert(1, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="bk2hp_grad_rot" gradientTransform="rotate(90)" xlink:href="#bk2hp_grad" />''') )
self.xpathSingle(u'//*[@id="' + main_path_id() + '"]').set( 'style', simplestyle.formatStyle({ 'stroke': '#888888', 'stroke-width': '1pt', 'fill': 'url(#bk2hp_grad_rot)', } ))
Which generates a linearGradient and a rotated version of it. However, when I move the path filled with the rotation, it reverts to the non-rotated version.
I'm attaching it here. Why is Inkscape doing it? Is it a bug?
You can find the extension in question here:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
Regards,
Shlomi Fish
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi Jabiertxo,
On Tue, 11 Jun 2013 20:20:39 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
You were able to install it - you just were not able to use it. It is meant to be used on this image:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
(short URL - http://is.gd/PfAq4b ).
I hard-coded the ID of the path to distort.
Regards,
Shlomi Fish
your extension bring me: Traceback (most recent call last): File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 381, in <module> e.affect() File "/usr/share/inkscape/extensions/inkex.py", line 267, in affect self.effect() File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 86, in effect letterElement = self.selected[self.options.ids[0]] KeyError: 'back' Traceback (most recent call last): File "shlomif_back_to_homepage_distort.py", line 212, in <module> distort_e.calc_out_fn() File "/usr/lib/python2.7/subprocess.py", line 544, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['python', '/home/jtx/.config/inkscape/extensions/bezierenvelope.py', '--id=back', '--id=for_envelope_path', '/tmp/tmp_6RFEd/with_path.svg']' returned non-zero exit status 1
El mar, 11-06-2013 a las 20:10 +0300, Shlomi Fish escribió:
Hi all,
I am resending this to the *-devel list due to getting now answers on the user list and someone suggesting on the list that I send it here.
Q: in my extension I have this:
class StyleEffect(GenericAddPathEffect): def effect(self): self.xpathSingle(u'svg:defs').insert(0, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="bk2hp_grad"> <stop style="stop-color:#0000ff;stop-opacity:1" offset="0" id="b2h_0" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.4" id="b2h_1" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.6" id="b2h_2" /> <stop style="stop-color:#0000ff;stop-opacity:1" offset="1" id="b2h_3" /> </svg:linearGradient>''') ) self.xpathSingle(u'svg:defs').insert(1, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="bk2hp_grad_rot" gradientTransform="rotate(90)" xlink:href="#bk2hp_grad" />''') )
self.xpathSingle(u'//*[@id="' + main_path_id() + '"]').set( 'style', simplestyle.formatStyle({ 'stroke': '#888888', 'stroke-width': '1pt', 'fill': 'url(#bk2hp_grad_rot)', } ))
Which generates a linearGradient and a rotated version of it. However, when I move the path filled with the rotation, it reverts to the non-rotated version.
I'm attaching it here. Why is Inkscape doing it? Is it a bug?
You can find the extension in question here:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
Regards,
Shlomi Fish
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Think the problem is you need full define the main gradient, bk2hp_grad_rot, if not when translate come back to a default values.
Hi, Jabier.
El mar, 11-06-2013 a las 23:34 +0300, Shlomi Fish escribió:
Hi Jabiertxo,
On Tue, 11 Jun 2013 20:20:39 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
You were able to install it - you just were not able to use it. It is meant to be used on this image:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
(short URL - http://is.gd/PfAq4b ).
I hard-coded the ID of the path to distort.
Regards,
Shlomi Fish
your extension bring me: Traceback (most recent call last): File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 381, in <module> e.affect() File "/usr/share/inkscape/extensions/inkex.py", line 267, in affect self.effect() File "/home/jtx/.config/inkscape/extensions/bezierenvelope.py", line 86, in effect letterElement = self.selected[self.options.ids[0]] KeyError: 'back' Traceback (most recent call last): File "shlomif_back_to_homepage_distort.py", line 212, in <module> distort_e.calc_out_fn() File "/usr/lib/python2.7/subprocess.py", line 544, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['python', '/home/jtx/.config/inkscape/extensions/bezierenvelope.py', '--id=back', '--id=for_envelope_path', '/tmp/tmp_6RFEd/with_path.svg']' returned non-zero exit status 1
El mar, 11-06-2013 a las 20:10 +0300, Shlomi Fish escribió:
Hi all,
I am resending this to the *-devel list due to getting now answers on the user list and someone suggesting on the list that I send it here.
Q: in my extension I have this:
class StyleEffect(GenericAddPathEffect): def effect(self): self.xpathSingle(u'svg:defs').insert(0, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="bk2hp_grad"> <stop style="stop-color:#0000ff;stop-opacity:1" offset="0" id="b2h_0" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.4" id="b2h_1" /> <stop style="stop-color:#00deff;stop-opacity:1" offset="0.6" id="b2h_2" /> <stop style="stop-color:#0000ff;stop-opacity:1" offset="1" id="b2h_3" /> </svg:linearGradient>''') ) self.xpathSingle(u'svg:defs').insert(1, inkex.etree.XML('''<svg:linearGradient xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="bk2hp_grad_rot" gradientTransform="rotate(90)" xlink:href="#bk2hp_grad" />''') )
self.xpathSingle(u'//*[@id="' + main_path_id() + '"]').set( 'style', simplestyle.formatStyle({ 'stroke': '#888888', 'stroke-width': '1pt', 'fill': 'url(#bk2hp_grad_rot)', } ))
Which generates a linearGradient and a rotated version of it. However, when I move the path filled with the rotation, it reverts to the non-rotated version.
I'm attaching it here. Why is Inkscape doing it? Is it a bug?
You can find the extension in question here:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
Regards,
Shlomi Fish
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi Jabier,
On Wed, 12 Jun 2013 00:03:54 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Think the problem is you need full define the main gradient, bk2hp_grad_rot, if not when translate come back to a default values.
I don't understand. I find it hard to understand what you write in English, due to its bad grammar. Can someone else here help me?
Regards,
Shlomi Fish
Hi, Jabier.
El mar, 11-06-2013 a las 23:34 +0300, Shlomi Fish escribió:
Hi Jabiertxo,
On Tue, 11 Jun 2013 20:20:39 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
You were able to install it - you just were not able to use it. It is meant to be used on this image:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
(short URL - http://is.gd/PfAq4b ).
I hard-coded the ID of the path to distort.
Regards,
Shlomi Fish
Sorry for my english. An EXAMPLE: Good:https://www.box.com/s/s19bxgo4y8uh81ru0kdw Bad:https://www.box.com/s/1ke3iqj7yb1ir9e6svid
El mié, 12-06-2013 a las 16:21 +0300, Shlomi Fish escribió:
Hi Jabier,
On Wed, 12 Jun 2013 00:03:54 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Think the problem is you need full define the main gradient, bk2hp_grad_rot, if not when translate come back to a default values.
I don't understand. I find it hard to understand what you write in English, due to its bad grammar. Can someone else here help me?
Regards,
Shlomi Fish
Hi, Jabier.
El mar, 11-06-2013 a las 23:34 +0300, Shlomi Fish escribió:
Hi Jabiertxo,
On Tue, 11 Jun 2013 20:20:39 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
You were able to install it - you just were not able to use it. It is meant to be used on this image:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
(short URL - http://is.gd/PfAq4b ).
I hard-coded the ID of the path to distort.
Regards,
Shlomi Fish
Hi Jabier,
On Wed, 12 Jun 2013 15:58:53 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Sorry for my english. An EXAMPLE: Good: https://www.box.com/s/s19bxgo4y8uh81ru0kdw Bad: https://www.box.com/s/1ke3iqj7yb1ir9e6svid
OK, I was able to download these SVGs after I enabled JavaScript, but next time please either send them as attachments, or alternatively use a honest-to-God web-service, such as http://www.shlomifish.org/Files/files/ . Now, I see that the diff is:
< QUOTE >
--- back-to-my-homepage--path-union--with-less-vertical-space_original.svg 2013-06-12 17:18:17.944370810 +0300 +++ back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg 2013-06-12 17:17:55.501581299 +0300 @@ -15,7 +15,7 @@ id="svg2" version="1.1" inkscape:version="0.48+devel r12070" - sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg"> + sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK2.svg"> <sodipodi:namedview id="base" pagecolor="#ffffff" @@ -23,9 +23,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="0.5569102205105" - inkscape:cx="302.9493552351" - inkscape:cy="510.5301910027" + inkscape:zoom="0.5792952300164" + inkscape:cx="310.2014040163" + inkscape:cy="191.2771110556" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" @@ -78,8 +78,13 @@ </linearGradient> <linearGradient xlink:href="#bk2hp_grad" - gradientTransform="rotate(90)" - id="bk2hp_grad_rot" /> + gradientTransform="scale(1.453398814935,0.6880423939556)" + id="bk2hp_grad_rot" + x1="342.5840528861" + y1="-0.991741650398" + x2="342.533782959" + y2="280.4592895508" + gradientUnits="userSpaceOnUse" /> </defs> <metadata id="metadata7">
</QUOTE>
What is the significance of the x1/y1/x2/y2 coordinates? Why wasn't the rot() preserved upon movement? Can anyone answer except for Jabier? Please?
Regards,
Shlomi Fish
El mié, 12-06-2013 a las 16:21 +0300, Shlomi Fish escribió:
Hi Jabier,
On Wed, 12 Jun 2013 00:03:54 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Think the problem is you need full define the main gradient, bk2hp_grad_rot, if not when translate come back to a default values.
I don't understand. I find it hard to understand what you write in English, due to its bad grammar. Can someone else here help me?
Regards,
Shlomi Fish
Hi, Jabier.
El mar, 11-06-2013 a las 23:34 +0300, Shlomi Fish escribió:
Hi Jabiertxo,
On Tue, 11 Jun 2013 20:20:39 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
You were able to install it - you just were not able to use it. It is meant to be used on this image:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
(short URL - http://is.gd/PfAq4b ).
I hard-coded the ID of the path to distort.
Regards,
Shlomi Fish
I think i couldent attach files to the list and dont have control over a server. In Isrrael has a lot of killer apps to do it, im a sumise user of others work.
El mié, 12-06-2013 a las 17:29 +0300, Shlomi Fish escribió:
Hi Jabier,
On Wed, 12 Jun 2013 15:58:53 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Sorry for my english. An EXAMPLE: Good: https://www.box.com/s/s19bxgo4y8uh81ru0kdw Bad: https://www.box.com/s/1ke3iqj7yb1ir9e6svid
OK, I was able to download these SVGs after I enabled JavaScript, but next time please either send them as attachments, or alternatively use a honest-to-God web-service, such as http://www.shlomifish.org/Files/files/ . Now, I see that the diff is:
< QUOTE >
back-to-my-homepage--path-union--with-less-vertical-space_original.svg 2013-06-12 17:18:17.944370810 +0300 +++ back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg 2013-06-12 17:17:55.501581299 +0300 @@ -15,7 +15,7 @@ id="svg2" version="1.1" inkscape:version="0.48+devel r12070"
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg">
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK2.svg"> <sodipodi:namedview id="base" pagecolor="#ffffff" @@ -23,9 +23,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2"
inkscape:zoom="0.5569102205105"
inkscape:cx="302.9493552351"
inkscape:cy="510.5301910027"
inkscape:zoom="0.5792952300164"
inkscape:cx="310.2014040163"
inkscape:cy="191.2771110556" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true"
@@ -78,8 +78,13 @@ </linearGradient> <linearGradient xlink:href="#bk2hp_grad"
gradientTransform="rotate(90)"
id="bk2hp_grad_rot" />
gradientTransform="scale(1.453398814935,0.6880423939556)"
id="bk2hp_grad_rot"
x1="342.5840528861"
y1="-0.991741650398"
x2="342.533782959"
y2="280.4592895508"
gradientUnits="userSpaceOnUse" />
</defs> <metadata id="metadata7">
</QUOTE>
What is the significance of the x1/y1/x2/y2 coordinates? Why wasn't the rot() preserved upon movement? Can anyone answer except for Jabier? Please?
Regards,
Shlomi Fish
El mié, 12-06-2013 a las 16:21 +0300, Shlomi Fish escribió:
Hi Jabier,
On Wed, 12 Jun 2013 00:03:54 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Think the problem is you need full define the main gradient, bk2hp_grad_rot, if not when translate come back to a default values.
I don't understand. I find it hard to understand what you write in English, due to its bad grammar. Can someone else here help me?
Regards,
Shlomi Fish
Hi, Jabier.
El mar, 11-06-2013 a las 23:34 +0300, Shlomi Fish escribió:
Hi Jabiertxo,
On Tue, 11 Jun 2013 20:20:39 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Hi, the gradientTransform is ok, think is a cuestion with xlink but i couldent install your extension.
You were able to install it - you just were not able to use it. It is meant to be used on this image:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/master/...
(short URL - http://is.gd/PfAq4b ).
I hard-coded the ID of the path to distort.
Regards,
Shlomi Fish
Hi all,
On Wed, 12 Jun 2013 17:29:30 +0300 Shlomi Fish <shlomif@...2985...> wrote:
Hi Jabier,
On Wed, 12 Jun 2013 15:58:53 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Sorry for my english. An EXAMPLE: Good: https://www.box.com/s/s19bxgo4y8uh81ru0kdw Bad: https://www.box.com/s/1ke3iqj7yb1ir9e6svid
OK, I was able to download these SVGs after I enabled JavaScript, but next time please either send them as attachments, or alternatively use a honest-to-God web-service, such as http://www.shlomifish.org/Files/files/ . Now, I see that the diff is:
< QUOTE >
back-to-my-homepage--path-union--with-less-vertical-space_original.svg 2013-06-12 17:18:17.944370810 +0300 +++ back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg 2013-06-12 17:17:55.501581299 +0300 @@ -15,7 +15,7 @@ id="svg2" version="1.1" inkscape:version="0.48+devel r12070"
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg">
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK2.svg"> <sodipodi:namedview id="base" pagecolor="#ffffff" @@ -23,9 +23,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2"
inkscape:zoom="0.5569102205105"
inkscape:cx="302.9493552351"
inkscape:cy="510.5301910027"
inkscape:zoom="0.5792952300164"
inkscape:cx="310.2014040163"
inkscape:cy="191.2771110556" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true"
@@ -78,8 +78,13 @@ </linearGradient> <linearGradient xlink:href="#bk2hp_grad"
gradientTransform="rotate(90)"
id="bk2hp_grad_rot" />
gradientTransform="scale(1.453398814935,0.6880423939556)"
id="bk2hp_grad_rot"
x1="342.5840528861"
y1="-0.991741650398"
x2="342.533782959"
y2="280.4592895508"
gradientUnits="userSpaceOnUse" />
</defs> <metadata id="metadata7">
</QUOTE>
What is the significance of the x1/y1/x2/y2 coordinates? Why wasn't the rot() preserved upon movement? Can anyone answer except for Jabier? Please?
Can someone *please* answer this question? I've waited far too long. What is the significance of the x1/y1/x2/y2 coordinates? How do I calculate them programatically? How do I create a rotated linearGradient whose angle will stick? Someone? Anyone?
Regards,
Shlomi Fish
I know you dont want my help, but i made a exception if i am brong. X1 and Y1 seems to be the position of the start of the gradient X2 and Y2 seems to be the position of the end of the gradient You can programaticaly this knowing the values of the bounding box of the object. It can be done -bounding-box- by diferent ways depending the kind of object.
Sorry for merge politic whith code but is a important thread to me.
Best regards, Jabier.
El lun, 17-06-2013 a las 12:32 +0300, Shlomi Fish escribió:
Hi all,
On Wed, 12 Jun 2013 17:29:30 +0300 Shlomi Fish <shlomif@...2985...> wrote:
Hi Jabier,
On Wed, 12 Jun 2013 15:58:53 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Sorry for my english. An EXAMPLE: Good: https://www.box.com/s/s19bxgo4y8uh81ru0kdw Bad: https://www.box.com/s/1ke3iqj7yb1ir9e6svid
OK, I was able to download these SVGs after I enabled JavaScript, but next time please either send them as attachments, or alternatively use a honest-to-God web-service, such as http://www.shlomifish.org/Files/files/ . Now, I see that the diff is:
< QUOTE >
back-to-my-homepage--path-union--with-less-vertical-space_original.svg 2013-06-12 17:18:17.944370810 +0300 +++ back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg 2013-06-12 17:17:55.501581299 +0300 @@ -15,7 +15,7 @@ id="svg2" version="1.1" inkscape:version="0.48+devel r12070"
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg">
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK2.svg"> <sodipodi:namedview id="base" pagecolor="#ffffff" @@ -23,9 +23,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2"
inkscape:zoom="0.5569102205105"
inkscape:cx="302.9493552351"
inkscape:cy="510.5301910027"
inkscape:zoom="0.5792952300164"
inkscape:cx="310.2014040163"
inkscape:cy="191.2771110556" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true"
@@ -78,8 +78,13 @@ </linearGradient> <linearGradient xlink:href="#bk2hp_grad"
gradientTransform="rotate(90)"
id="bk2hp_grad_rot" />
gradientTransform="scale(1.453398814935,0.6880423939556)"
id="bk2hp_grad_rot"
x1="342.5840528861"
y1="-0.991741650398"
x2="342.533782959"
y2="280.4592895508"
gradientUnits="userSpaceOnUse" />
</defs> <metadata id="metadata7">
</QUOTE>
What is the significance of the x1/y1/x2/y2 coordinates? Why wasn't the rot() preserved upon movement? Can anyone answer except for Jabier? Please?
Can someone *please* answer this question? I've waited far too long. What is the significance of the x1/y1/x2/y2 coordinates? How do I calculate them programatically? How do I create a rotated linearGradient whose angle will stick? Someone? Anyone?
Regards,
Shlomi Fish
Hi Jabier,
On Mon, 17 Jun 2013 12:12:03 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
I know you dont want my help, but i made a exception if i am brong.
Actually, I do want your help - it's just that I find you hard to understand.
X1 and Y1 seems to be the position of the start of the gradient X2 and Y2 seems to be the position of the end of the gradient
OK, understood.
You can programaticaly this knowing the values of the bounding box of the object.
Thanks! I'll try.
It can be done -bounding-box- by diferent ways depending the kind of object.
Thanks.
Sorry for merge politic whith code but is a important thread to me.
Best regards, Jabier.
Regards,
Shlomi Fish
El lun, 17-06-2013 a las 12:32 +0300, Shlomi Fish escribió:
Hi all,
On Wed, 12 Jun 2013 17:29:30 +0300 Shlomi Fish <shlomif@...2985...> wrote:
Hi Jabier,
On Wed, 12 Jun 2013 15:58:53 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Sorry for my english. An EXAMPLE: Good: https://www.box.com/s/s19bxgo4y8uh81ru0kdw Bad: https://www.box.com/s/1ke3iqj7yb1ir9e6svid
OK, I was able to download these SVGs after I enabled JavaScript, but next time please either send them as attachments, or alternatively use a honest-to-God web-service, such as http://www.shlomifish.org/Files/files/ . Now, I see that the diff is:
< QUOTE >
back-to-my-homepage--path-union--with-less-vertical-space_original.svg 2013-06-12 17:18:17.944370810 +0300 +++ back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg 2013-06-12 17:17:55.501581299 +0300 @@ -15,7 +15,7 @@ id="svg2" version="1.1" inkscape:version="0.48+devel r12070"
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK.svg">
sodipodi:docname="back-to-my-homepage--path-union--with-less-vertical-spaceOK2.svg"> <sodipodi:namedview id="base" pagecolor="#ffffff" @@ -23,9 +23,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2"
inkscape:zoom="0.5569102205105"
inkscape:cx="302.9493552351"
inkscape:cy="510.5301910027"
inkscape:zoom="0.5792952300164"
inkscape:cx="310.2014040163"
inkscape:cy="191.2771110556" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true"
@@ -78,8 +78,13 @@ </linearGradient> <linearGradient xlink:href="#bk2hp_grad"
gradientTransform="rotate(90)"
id="bk2hp_grad_rot" />
gradientTransform="scale(1.453398814935,0.6880423939556)"
id="bk2hp_grad_rot"
x1="342.5840528861"
y1="-0.991741650398"
x2="342.533782959"
y2="280.4592895508"
gradientUnits="userSpaceOnUse" />
</defs> <metadata id="metadata7">
</QUOTE>
What is the significance of the x1/y1/x2/y2 coordinates? Why wasn't the rot() preserved upon movement? Can anyone answer except for Jabier? Please?
Can someone *please* answer this question? I've waited far too long. What is the significance of the x1/y1/x2/y2 coordinates? How do I calculate them programatically? How do I create a rotated linearGradient whose angle will stick? Someone? Anyone?
Regards,
Shlomi Fish
Hi all,
On Mon, 17 Jun 2013 15:09:11 +0300 Shlomi Fish <shlomif@...2985...> wrote:
Hi Jabier,
On Mon, 17 Jun 2013 12:12:03 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
I know you dont want my help, but i made a exception if i am brong.
Actually, I do want your help - it's just that I find you hard to understand.
X1 and Y1 seems to be the position of the start of the gradient X2 and Y2 seems to be the position of the end of the gradient
OK, understood.
You can programaticaly this knowing the values of the bounding box of the object.
Thanks! I'll try.
OK, Jabier's advice of setting x1/y1/x2/y2 worked in this commit:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/commit/1f0bc...
I'm attaching its patch here.
Thanks to Jabier!
Regards,
Shlomi Fish
It can be done -bounding-box- by diferent ways depending the kind of object.
Thanks.
Sorry for merge politic whith code but is a important thread to me.
Best regards, Jabier.
Regards,
Shlomi Fish
You are welcome.
El lun, 17-06-2013 a las 16:17 +0300, Shlomi Fish escribió:
Hi all,
On Mon, 17 Jun 2013 15:09:11 +0300 Shlomi Fish <shlomif@...2985...> wrote:
Hi Jabier,
On Mon, 17 Jun 2013 12:12:03 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
I know you dont want my help, but i made a exception if i am brong.
Actually, I do want your help - it's just that I find you hard to understand.
X1 and Y1 seems to be the position of the start of the gradient X2 and Y2 seems to be the position of the end of the gradient
OK, understood.
You can programaticaly this knowing the values of the bounding box of the object.
Thanks! I'll try.
OK, Jabier's advice of setting x1/y1/x2/y2 worked in this commit:
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/commit/1f0bc...
I'm attaching its patch here.
Thanks to Jabier!
Regards,
Shlomi Fish
It can be done -bounding-box- by diferent ways depending the kind of object.
Thanks.
Sorry for merge politic whith code but is a important thread to me.
Best regards, Jabier.
Regards,
Shlomi Fish
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Jabiertxo Arraiza Cenoz
-
Shlomi Fish