Can we get this gradient with inkscape?

Post questions on how to use or achieve an effect in Inkscape.
User avatar
ilomo
Posts: 5
Joined: Wed Apr 04, 2012 6:04 pm

Can we get this gradient with inkscape?

Postby ilomo » Thu Apr 26, 2012 1:58 am

Hi, I'm trying to resolve how to make easily the central gradient of this button.

Thanks in advance for your suggestions.

Image

Uploaded with ImageShack.us

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

Re: Can we get this gradient with inkscape?

Postby brynn » Thu Apr 26, 2012 3:46 pm

Image
Welcome to InkscapeForum!

Inkscape can't make that kind of gradient. But there is a way to fake it, using Extensions menu > Generate from Path > Interpolate. Here is how I would do it:

-- Draw one radius line.
-- Enable Snapping: 1st button on Snap control bar, and Snap to Nodes or Handles, and Snap to Cusp Nodes. (3 buttons engaged, all others not)
-- With Selection tool, click twice on the radius line (not too fast or you'll call up the Node tool). This will reveal the rotation center. Place mouse pointer over the little plus sign and drag it towards one node of the radius or the other. It will jump out of your control and land precisely on the node.
-- Duplicate the radius line.
-- Rotate the duplicate. I don't know how many radii will be ideal for this. I would say that 24 radii placed at 15 degree increments might be too many. But you'll just have to experiment. I'd start with 12 radii at 30 degree increments. Handily, using the Ctrl key with the Selection tool will allow you to rotate in 15 degree steps. Or you could use the Transform dialog > Rotate tab, to choose some other degree of rotation. (If you use the Selection tool to rotate, be sure to disable Snapping before you start rotating.) An important factor in choosing how many radii to use, might be the number of different colors needed. One radius for each main color should work just fine, but you'll need them equally spaced.
-- Continue with this pattern: Duplicate, Rotate, Duplicate, Rotate, until you finish with the circle of radii.
-- Give the appropriate radii the appropriate color.
-- Extensions menu > Generate from path > Interpolate. You'll have to experiment with the width of the stroke of the radii, and the number of interpolation steps, to get the right effect.
-- Select all the radii and Group
-- Add a small amount of blur until it looks like you want

Let us know how it goes. If you get stuck, speak up, because this is a fairly complex process, especially if you're a new user. There may be several nuances or details which might not be readily obvious to you.

Theoretically, there are other ways to create the "spokes", and others may reply with different techniques. It doesn't matter how you make the spokes :D
(Well actually it might. The radius paths must all go in the same direction, which will happen automatically with the technique I described.)

User avatar
ilomo
Posts: 5
Joined: Wed Apr 04, 2012 6:04 pm

Re: Can we get this gradient with inkscape?

Postby ilomo » Thu Apr 26, 2012 6:05 pm

Thank you very much for the wellcoming and the fast and exhaustive answer!!!!!!!

It's very pleasant for me to be part of this community.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Can we get this gradient with inkscape?

Postby v1nce » Thu May 03, 2012 8:27 am

I hope we'll be able to use mesh gradients "soon"

http://tavmjong.free.fr/SVG/MESH/Mesh.html

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

Re: Can we get this gradient with inkscape?

Postby brynn » Fri May 04, 2012 6:31 am

Ah yes, vince. I've been watching progress on Google+ https://plus.google.com/u/0/10891124466 ... Q6KJj6zBRC and https://plus.google.com/u/0/10891124466 ... 35MLxfQd74 and there are probably other older entries :D


Return to “Help with using Inkscape”