Welcome to TalkGraphics.com
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 49
  1. #11
    Join Date
    Jun 2007
    Location
    Montreal
    Posts
    780

    Default Re: Gradiet colourfor a line

    Thanks Mark, I'll have to remember this one!

    Marc

  2. #12
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,309

    Default Re: Gradiet colourfor a line

    of course the 'line' round a shape is not really a line its a 'shape outline'

    here is a an unclosed line that looks closed but it isn't - with Marks cilpview applied [see xar file - done freehand so quite a few nodes - may take a while to open]

    done just to see if I could do it
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	line is not closed.jpg 
Views:	256 
Size:	8.3 KB 
ID:	44882  
    Attached Files Attached Files
    -------------------------------
    Nothing lasts forever...

  3. #13
    Join Date
    Aug 2002
    Location
    A little french village east of Dallas, TX called Forney And now Austria and Germany too
    Posts
    1,053

    Default Re: Gradiet colourfor a line

    Quote Originally Posted by MarkMyWords View Post
    You are right Bill it doesn't work for enclosed shapes, the line would have to be broken so that defeats the object I suppose.
    Not really. I guess you could create a second shape with just a line and no fill, break it at a point and then apply the clipview. It is a work-around but then so is everything else we have been talking about.

    Eric
    I'm never wrong. I thought I was wrong once but it turns out that I was mistaken.
    Web Templates. My Beginner Video Tutorials
    My Club. My Album.
    My Other Album. My Tutorial.

  4. #14
    Join Date
    Aug 2002
    Location
    A little french village east of Dallas, TX called Forney And now Austria and Germany too
    Posts
    1,053

    Default Re: Gradiet colourfor a line

    Steve beat me to it.

    Eric
    I'm never wrong. I thought I was wrong once but it turns out that I was mistaken.
    Web Templates. My Beginner Video Tutorials
    My Club. My Album.
    My Other Album. My Tutorial.

  5. #15
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,309

    Default Re: Gradiet colourfor a line

    no breaks - this was drawn as a line taking great care not to let the nodes join up at the ends [need to have your freehand detect taken right down in registry - mine is set at zero - or the darn thing will just join automatically ]
    -------------------------------
    Nothing lasts forever...

  6. #16
    Join Date
    Sep 2005
    Location
    South West UK
    Posts
    222

    Default Re: Gradiet colourfor a line

    Thanks for all your help.

    Seems it is not a straight forward option in XaraX. The best I can muster is to simply simulate it by copy paste enlarge and subtract. As in attachment.

    The problem with this is that the line thickness varies around the circumference.

    I did think that I could use intersect, but the intersect function takes no account of the line thickness, ie if the intersecting shape has a line width of zero or 100pix the result is as if there was no line - so this won't work.

    Many thanks again

    Martin
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Coloured border.jpg 
Views:	262 
Size:	27.5 KB 
ID:	44894  

  7. #17
    Join Date
    Jul 2007
    Location
    Brockville, Ontario, Canada.
    Posts
    4,619

    Default Re: Gradiet colourfor a line

    If you want to do it that way, the take the shape, add a bevel (size to suit) - change the light elevation to 90° to flatten out the bevel and add the gradient fill to the bevel - add as many colours as you like to the gradient. You could also make the shape itself transparent to give a line effect.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	temp.png 
Views:	262 
Size:	4.7 KB 
ID:	44905  
    Last edited by ss-kalm; 31 January 2008 at 08:31 PM.
    Keith
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    There are 10 types of people in this world .... Those who understand binary, and those who don't.

  8. #18
    Join Date
    Sep 2005
    Location
    South West UK
    Posts
    222

    Default Re: Gradient colour for a line

    Thanks Keith

    That seems to be the answer - I will now experiment a bit.

    The fill and the bevel (line!?) can be filled independantly as you say.

    Martin
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	gradient line and fill.jpg 
Views:	257 
Size:	7.7 KB 
ID:	44910  
    Last edited by Riftvalley; 31 January 2008 at 10:50 PM.

  9. #19
    Join Date
    Jul 2007
    Location
    Brockville, Ontario, Canada.
    Posts
    4,619

    Default Re: Gradiet colourfor a line

    More playing and investigating:

    If you add a bevel to a single line (start with external bevel so you can see what your doing) , change light elevation to 90 and add a linear gradient you can adjust the bevel internally to fill the line. The line still exhibits all the properties of a line and can still be shaped with the shape editor.

    Have included the .xar for anyone interested.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	temp2.png 
Views:	259 
Size:	2.5 KB 
ID:	44919  
    Attached Files Attached Files
    Keith
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    There are 10 types of people in this world .... Those who understand binary, and those who don't.

  10. #20
    Join Date
    Jan 2006
    Location
    Tochigi, Japan
    Posts
    9

    Default Re: Gradiet colourfor a line

    Hello. I just read these posts and try things out sometimes for practice (mostly when I'm killing time at work ). I don't really know what I'm doing. I was trying to do what Keith suggested - I got as far as adding the bevel, adjusting the light elevation and then it came to a screeching halt. How do I add a gradient fill? Sorry for the stupid question!

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •