How 2 mask an arbitrary object with a grid of only whole smaller objects?
Hi, I'm moving over to Linux & Inkscape from Windows & Adobe. I'm working on learning the tools and methods in Inkscape. Got a lot of it figured out. Pretty similar actually. I do have a test case that I'd appreciate some help figuring out: Given an arbitrarily shaped object, how do I mask out a tiled pattern, using only complete tile objects? So for example, starting with (1) main object is a red, 8inch diameter circle (2) mask object is a black, 1inch square I want to mask (1) with (2), so I end up with a bunch of complete (no clipped, or partial) 1inch red squares on a grid, contained inside the boundary of the original 8 inch circle. I've figured out Tile Clones, so I can manually make a grid of mask objects larger than the original object. I guess I'd put together two layers -- one with the original and one with the mask later -- and intersect them. Is there a way to do this in (more?) automated fashion providing the sources only for (1) & (2)? Cheers, Jim
Hi, the simplest way to do that is to convert your square to a pattern (object->pattern->object to pattern); then it will appear as a pattern in the fill and stroke panel, and you can use that as a fill for your circle. -- Mc http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Attributes-Fill-Stroke.html#Att... On 12/17/2015 05:10 PM, jimssupp@...3197... wrote:
Hi,
I'm moving over to Linux & Inkscape from Windows & Adobe.
I'm working on learning the tools and methods in Inkscape. Got a lot of it figured out. Pretty similar actually.
I do have a test case that I'd appreciate some help figuring out:
Given an arbitrarily shaped object, how do I mask out a tiled pattern, using only complete tile objects?
So for example, starting with
(1) main object is a red, 8inch diameter circle (2) mask object is a black, 1inch square
I want to mask (1) with (2), so I end up with a bunch of complete (no clipped, or partial) 1inch red squares on a grid, contained inside the boundary of the original 8 inch circle.
I've figured out Tile Clones, so I can manually make a grid of mask objects larger than the original object.
I guess I'd put together two layers -- one with the original and one with the mask later -- and intersect them.
Is there a way to do this in (more?) automated fashion providing the sources only for (1) & (2)?
Cheers,
Jim
------------------------------------------------------------------------------
_______________________________________________
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Hi On 12/17/2015 03:17 PM, Marc Jeanmougin wrote:
the simplest way to do that is to convert your square to a pattern (object->pattern->object to pattern); then it will appear as a pattern in the fill and stroke panel, and you can use that as a fill for your circle.
I tried that. The pattern does fill the circle but it gets clipped by the circle, too. So I end up with clipped/partial squares. I want to end up with only WHOLE squares ; if one would be clipped, it'd not be used. Also, the resulting doc's pattern squares are not then individually selectable. I should've added THAT as a 'wanna have' to my original post. Cheers, Jim
Oh, sorry, i missed the "no clipped" part. Did you try the "trace" tab in the tiled clone dialog (take opacity, gamma-correct -10, apply to presence) ? The opacity under the clone square will be used to give a probability of presence to the clone (so, if you have a filled opaque circle, "1" for squares inside the circle, "0" for squares outside, and in between for circles on the edge, the -10 tweak ensure there are as few as possible left) -- Mc On 12/18/2015 12:39 AM, jimssupp@...3197... wrote:
Hi
On 12/17/2015 03:17 PM, Marc Jeanmougin wrote:
the simplest way to do that is to convert your square to a pattern (object->pattern->object to pattern); then it will appear as a pattern in the fill and stroke panel, and you can use that as a fill for your circle.
I tried that.
The pattern does fill the circle but it gets clipped by the circle, too. So I end up with clipped/partial squares. I want to end up with only WHOLE squares ; if one would be clipped, it'd not be used.
Also, the resulting doc's pattern squares are not then individually selectable. I should've added THAT as a 'wanna have' to my original post.
Cheers,
Jim
------------------------------------------------------------------------------
_______________________________________________
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Hi On Fri, Dec 18, 2015, at 01:51 AM, Marc Jeanmougin wrote:
Oh, sorry, i missed the "no clipped" part.
Did you try the "trace" tab in the tiled clone dialog (take opacity, gamma-correct -10, apply to presence) ?
The opacity under the clone square will be used to give a probability of presence to the clone (so, if you have a filled opaque circle, "1" for squares inside the circle, "0" for squares outside, and in between for circles on the edge, the -10 tweak ensure there are as few as possible left)
I selected the square, setup to create a 10x10 grid of tiled clones, with the "trace" tab settings as you suggested. I grouped the tiles, sent the grouped object behind the circle, then selected clip/mask. I end up with a circle filled with the clone squares -- still *both* whole & partial. Not sure if I missed something :-/ Cheers, Jim
There's *TWO* opacity checkboxes in the dialog! Checking them BOTH, this is the result I get now http://snag.gy/eXfQo.jpg It's a lot closer, but I still have a couple outside-the-bounds clone tiles. Also, those individual clone tiles inside the circle can't be selected / edited. Maybe I need to export the result first; have to figure that out. Cheers, Jim
participants (2)
-
unknown@example.com -
Marc Jeanmougin