help w/gradient applied to group of circles

Post questions on how to use or achieve an effect in Inkscape.
User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

help w/gradient applied to group of circles

Postby brynn » Mon Sep 28, 2009 5:54 am

Hi Friends,
I had trouble once before applying a gradient to a group of circles. I could make it work just fine with squares, but there seemed to be some problem with circles. And I actually reported the problem at Launchpad, but it didn't seem to attrack much attention :roll: .

So here I am again, trying to apply a gradient to a group of circles, and having trouble. I want to give you an SVG file to examine, but it's too big to upload to the forum, and I'm having trouble with my usual SVG host. So I can't do that at the moment, but hopefully soom.

I do have a screen shot, to show my Inkscape window with all the various settings.
Image
So for the time being, does anyone know about a bug with applying a gradient to a group of circles (btw, I did search Launchpad, but can't even find my own bug with a search -- or any others on this topic). OR does anyone see anything wrong with the setting I'm showing in my Inkscape window?

Thanks for your help -- I'll have the SVG uploaded asap.
All best :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: help w/gradient applied to group of circles

Postby ~suv » Tue Sep 29, 2009 9:47 am

brynn wrote:(btw, I did search Launchpad, but can't even find my own bug with a search -- or any others on this topic)
Go to your Launchpad page, click on Bugs > Advanced search, select all status options and unselected 'hide duplicates' > Search: you get a list of all bugs you ever reported and commented ;-)
brynn wrote:I had trouble once before applying a gradient to a group of circles. I could make it work just fine with squares, but there seemed to be some problem with circles.
I tried to reproduce this (with 0.46 and 0.47pre) and had the same difficulties applying a gradient to a group of circles or stars - but only if I made them with the 'Create Tiled Clones…' tool. OTOH - 'draw a circle, create a cloud by stamping (drag + <SPACE>), unset the stroke of all circles, group them and apply gradient to the stroke of the group' works for me.

Here's a workaround that lets me apply the gradient to the group, not the individual circles:
  1. create original circle, convert it to a path
  2. use the 'Create Tiled Clones…' to create the array of circles you need
  3. select all clones and unlink them, (re)move the unneeded original circle
  4. keep all circles (which are really paths with 4 nodes) selected, open 'Fill and Stroke'
  5. remove 'Fill', unset 'Stroke' (the question mark button on the far right side, after the pattern icon)
  6. group the (still) selected circles
  7. apply gradient to the stroke of the group, adjust stroke width as needed

There seems to an underlying issue with 'Inkscape shapes' (circle, star), clones and inherited styles in groups - if I find a related bug report I will add a link here.

hth, ~suv

[edit date="Wed Sep 30, 2009"]
removed detailed links to user specific launchpad pages - my apologies to brynn for adding them in the first place
[/edit]
Last edited by ~suv on Wed Sep 30, 2009 7:04 pm, edited 2 times in total.

User avatar
kelan
Posts: 178
Joined: Thu Sep 06, 2007 12:55 am
Location: Unicorn of Open Source
Contact:

Re: help w/gradient applied to group of circles

Postby kelan » Wed Sep 30, 2009 3:45 am

I haven't investigated this issue myself, but if it only happens with clones, it's probably not a bug. Clones always display the fill and stroke properties of the original shape unless the original's are set to Unset. In other words, if you change a fill or stroke property on a clone it will ignore that unless you set the original's corresponding property (fill or stroke) to Unset. That's how clones work. It makes them cumbersome to work with for styling purposes, but that's how it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: help w/gradient applied to group of circles

Postby brynn » Wed Sep 30, 2009 5:56 am

Thanks ~suv :D
Yes, I did create my circles originally with Tiled Clones. I don't remember if I converted to Path before tiling...probably not. So I will repeat all my steps, using a circular path rather than a circle for the original tile.

Thanks for your efforts to reproduce my problem, despite lack of SVG file to examine (still troubleshooting host issue).

Go to your Launchpad page, click on Bugs > Advanced search, select all status options and unselected 'hide duplicates' > Search: you get a list of all bugs you ever reported and commented ;-)

Oh, well yes, I do know how to locate my own bugs; I actually still have my original email with the link. I was more commenting on the difficutly I have searching at Launchpad. Having filed a bug on the inability to apply a gradient to a group of circles, and hoping to find other bugs related to it, I had expected a search for 'gradient, group, circles' would find it....but no...

Oops, kelan, you posted while I was typing. Thanks!
I do know that if you're going to use the Color tab of the Tiled Clones dialog, you have to set the fill and stroke of the original to Unset. But I thought that once I broke the link of the clones, they should behave like regular circles, as before cloning. Doesn't that make sense?

Thanks again kelan and ~suv for your comments; I really appreciate your efforts.
All best :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: help w/gradient applied to group of circles

Postby ~suv » Wed Sep 30, 2009 8:41 am

brynn wrote:I was more commenting on the difficutly I have searching at Launchpad. Having filed a bug on the inability to apply a gradient to a group of circles, and hoping to find other bugs related to it, I had expected a search for 'gradient, group, circles' would find it....but no...
confirmed, the launchpad user interface doesn't offer a premium search experience ;-)

Oftentimes I resort to Google with the search restricted to the bug tracker, like this:

Code: Select all

gradient group circles site:bugs.launchpad.net/inkscape
(your comments are part of the first bug report listed in the current search result... ;-)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: help w/gradient applied to group of circles

Postby brynn » Wed Sep 30, 2009 8:57 am

Off topic:
~suv,
I tried to PM you about this, but find that you've disabled PMs. Regarding the search experience at Launchpad which you say isn't "premium". As it happens I recently had an email from Launchpad, where you removed several tags I had added to a bug that I reported. I didn't surprise me, in fact, you're the 3rd person who has removed tags from bugs I've reported (the other 2 times, I replaced them). (Since I know you from here, I did not replace the tags, concluding that you must know more about it than me.) But don't you think the search would work better at Launchpad, if all the tags entered by the reporter were left in place? I'm confused! Aren't tags like keywords that the search engine uses?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: help w/gradient applied to group of circles

Postby ~suv » Wed Sep 30, 2009 9:27 am

Off topic:
brynn wrote:I tried to PM you about this, but find that you've disabled PMs.
You can contact me via launchpad ;-) But why move this to PM?
brynn wrote:But don't you think the search would work better at Launchpad, if all the tags entered by the reporter were left in place? I'm confused! Aren't tags like keywords that the search engine uses?

Tags are not meant to duplicate the bug summary.

The search engines are supposed to do a full text search (among other things to weigh the search results). The tags are a separate tool for bug management and to narrow down searches (font issues not on win32, build failures on osx etc.).

Yes, there have been recent efforts to update and optimize the tags currently in use. Mainly we have removed tags that are used in single bugs and that only duplicate the description in the bug summary and replaced them with an 'official' more generic module or sub-system tag that they share with other bugs. We also tried to unify used tags that duplicated identical categories like 'export/exporting', 'clone/clones' or 'extension/extensions/extensions-plugins'.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: help w/gradient applied to group of circles

Postby brynn » Wed Sep 30, 2009 11:13 am

Off topic:
I wanted to PM, because this part of the discussion has nothing to do with the topic, and might have been seen as a personal issue.

Mainly we have removed tags that are used in single bugs and that only duplicate the description in the bug summary....

Yeah, now see, that's what I thought tags were supposed to do.

...and replaced them with an 'official' more generic module or sub-system tag that they share with other bugs.

And that makes no sense at all to me -- not in the sense that I'm disagreeing, but in the sense that I really don't understand what it means.

I have hesitated to report bugs at Launchpad, for the very obvious reason that I don't know what I'm doing. Well, I should say that I've never reported a bug without 1st posting for help here at InkscapeForum.com, and confirming that it's a bug, so it's not like I'm reporting stupid stuff. And I do want bugs reported, because it's really the only thing I can contribute to Inkscape.

So do you see any better way for ordinary Inkscape users to report bugs, without bogging down a system at Launchpad that we don't understand?

PS -- maybe a link for 1st-time bug reporters, that gives instructions and definitions?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: help w/gradient applied to group of circles

Postby ~suv » Wed Sep 30, 2009 6:58 pm

Off topic:
brynn wrote:So do you see any better way for ordinary Inkscape users to report bugs
Keep doing it ;-) and trust your common sense! I think it works quite well the ways it is - just stay realistic and don't assume that your bug will be fixed tomorrow.

The Inkscape FAQ section "Contributing to Inkscape" and the page "Reporting Bugs" introduced me to the bug tracker - from there I started exploring: reading (and re-reading ;-) other bug tracker related information in the Wiki like "Bug Triage Projects" and "Updating Tracker Items" - but mainly spending some time on launchpad to just read some new reports or comments and search for older bugs that affected me.

brynn wrote:I've never reported a bug without 1st posting for help here at InkscapeForum.com, and confirming that it's a bug
I noticed and applaud you for that - IMHO it's a good and considerate way to verify a problem as bug or missing feature in a discussion here and then add a link to the topic in the bug report.

Regarding the initial question about 'tags': maybe you will get different answers from the Inkscape bug team members or other developers who engage in bug triage - but my advice would be to let them be added by bug triage if you are unsure. The current web interface of Launchpad (v3.0) doesn't show the tags field in the initial bug report form - this indicates to me that it's not an information required to add when first reporting a new bug.

~suv

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: help w/gradient applied to group of circles

Postby brynn » Fri Oct 02, 2009 4:48 am

Off topic:
The current web interface of Launchpad (v3.0) doesn't show the tags field in the initial bug report form - this indicates to me that it's not an information required to add when first reporting a new bug.

Ah, I hadn't noticed that. Now that I know, I'll just leave the tags to the other Launchpad pros.

Thanks for your help with this ~suv. It's much appreciated :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: help w/gradient applied to group of circles

Postby ~suv » Fri Oct 02, 2009 5:36 am

Any success with the gradient on grouped circles yet?

I haven't found a bug report that points to identical issues with Inkscape shapes and gradients as stroke attributes, but keep actively looking whenever I dig into a bug search (yes, with google - I'm not not that impressed by launchpad's interface ;-)

It could have its cause in the special way (or workaround with regard to the SVG specs) that Inkscape stores the 'shape' information and its transformations as sodipodi attributes. I'm still trying to create a reduced case that demonstrates the problem with a minimal number of elements and that highlights the different gradient rendering between groups of (unlinked tiled cloned) paths or rectangles and groups of (unlinked tiled cloned) shapes like circle, star or spiral.

~suv

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: help w/gradient applied to group of circles

Postby brynn » Fri Oct 02, 2009 7:22 pm

It seems to be working fine, ~suv. Once I used the circular path rather than the circle shape, I can apply the gradient as I wanted.

I'm still trying to create a reduced case that demonstrates the problem with a minimal number of elements and that highlights the different gradient rendering between groups of (unlinked tiled cloned) paths or rectangles and groups of (unlinked tiled cloned) shapes like circle, star or spiral.

Why? Is it just finding the time to do it? Because I wouldn't mind making up a sample file with tiny arrays of like 8 to 10 tiled clones of paths and objects of each shape for you. Although....you wouldn't necessarily need to use tiled clones to illustrate the problem, since it occurs in circle shapes that have not been tiled and cloned.

Or I guess you maybe have a better idea of what is needed? But if I can be of any help, please feel free to let me know :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: help w/gradient applied to group of circles

Postby ~suv » Sat Oct 03, 2009 1:00 am

brynn wrote:Why?
I like the "detective" work - that's how I learn about Inkscape ;-) and I want to get as close to what reproducibly causes the problem as possible (i.e. a minimal case).
brynn wrote:Is it just finding the time to do it?
partly time, partly time management or getting lost… I am not well organized.
brynn wrote:Because I wouldn't mind making up a sample file with tiny arrays of like 8 to 10 tiled clones of paths and objects of each shape for you.
Go ahead - it was not my intention to take this off of you ;-)
brynn wrote:Although....you wouldn't necessarily need to use tiled clones to illustrate the problem, since it occurs in circle shapes that have not been tiled and cloned.
See - that worked for me when I previously searched for a solution, but if it doesn't work for you then my assumption was wrong. OTOH I have seen inconsistent results depending on whether 'Object to Path' was applied before or after cloning and unlinking - I wanted to re-test this out of mere curiosity…

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: help w/gradient applied to group of circles

Postby brynn » Sat Oct 03, 2009 7:10 am

Go ahead - it was not my intention to take this off of you ;-)

Oh no, that's not even the issue. I would very much appreciate if you could make a better report that I did back then. And I'm sure that you can. I was just offering to help, to save you some time by creating the sample image document. I don't know, maybe it's better for one person to do the whole thing? In that case, I think you're much better qualified. But, if it wouldn't affect the integrity of the report, for me to make the example image, and you to write the report, then I'd be glad to take that chore off your hands :)

On 2nd thought though, when you say "minimal case", you're probably better equipped. I do know what minimal case means, but I think your detective work is the most important part, and depending on what you learn, it's going to affect what needs to be in the example image. So for the sake of the integrity of the report, I think it's better left in your capable hands. Just know that if there is anything I could do to help, I would be glad to :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: help w/gradient applied to group of circles

Postby ~suv » Sun Oct 04, 2009 10:47 pm

…getting closer? ;-)
Attachments
groups-with-gradient-0.svg
(10.94 KiB) Downloaded 184 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: help w/gradient applied to group of circles

Postby brynn » Mon Oct 05, 2009 3:24 pm

Nice!
So you found what's causing the problem -- good work!


Return to “Help with using Inkscape”