Welcome to TalkGraphics.com
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    May 2019
    Posts
    1

    Default How to create a line with a gradient fill

    Rik posted a feature request in the Dear Xara Forum for the ability to create to give a line a gradient fill. While Xara can not do this the way other programs do there are ways to do this in Xara software.

    Feel free to share your methods here!

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: How to create a line with a gradient fill

    1. Convert the line to shape (Arrange menu).
    2. Apply a fill.

  3. #3
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,298

    Default Re: How to create a line with a gradient fill

    as Gary but duplicate/clone line first [you may want to edit it and recreate the fill later]

    make an art brush [limited but should work for some simple cases]
    -------------------------------
    Nothing lasts forever...

  4. #4
    Join Date
    May 2014
    Posts
    15

    Default Re: How to create a line with a gradient fill

    I just draw a box, stretch it out, thin it down to a line and fill...

    Am I too simple?

  5. #5
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: How to create a line with a gradient fill

    Emmeric - If it is a straight line, OK. But what if the line is curved?

    Converting a line to shape is much simpler. Determine the shape. Increase or decrease the line width. Convert to Shape. Apply fill.

  6. #6
    Join Date
    Apr 2019
    Posts
    21

    Default Re: How to create a line with a gradient fill

    Once a brush is created, its application to a circle, for example, is not perfect, none of the three cap options gives a satisfactory result, unless I am missing something.Click image for larger version. 

Name:	Brush.jpg 
Views:	113 
Size:	67.0 KB 
ID:	124097

  7. #7
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,916

    Default Re: How to create a line with a gradient fill

    HD's solution of using an art brush is the way I'd go about it.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	export.png 
Views:	85 
Size:	46.8 KB 
ID:	124101  
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

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

    Default Re: How to create a line with a gradient fill

    Give the line a flat bevel and then add the gradient to the bevel. Make the line have a none thickness and adjust the bevel to suit.

    That way the line is still editable as a line with the shape editor tool.

    Gradient Filled Line.xar
    Keith
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    There are 10 types of people in this world .... Those who understand binary, and those who don't.

  9. #9
    Join Date
    Jul 2010
    Location
    England
    Posts
    1,137

    Default Re: How to create a line with a gradient fill

    Quote Originally Posted by Lorrain View Post
    Once a brush is created, its application to a circle, for example, is not perfect, none of the three cap options gives a satisfactory result, unless I am missing something.
    Click image for larger version. 

Name:	Brush.jpg 
Views:	113 
Size:	67.0 KB 
ID:	124097
    Hi Lorrain, have you tried your brush with different art brush scaling options?

    Repeat along stroke (with any line cap) seemed to work for me.

    Click image for larger version. 

Name:	art-brush-scaling.png 
Views:	80 
Size:	74.9 KB 
ID:	124112
    Jon (Jono) Xara Photo & Graphic Designer 19.0.0.64329 DL x64 May 19 2022

  10. #10
    Join Date
    Apr 2019
    Posts
    21

    Default Re: How to create a line with a gradient fill

    Hello Jonopen,

    Thank you for your comment, as I am in the middle of discovering Xara, I suspected that I had missed something! I didn't pay attention to the "Edit Brush" button, I feel a little stupid! Repeat along stroke is the solution, thank you again for taking the time to answer, have a good day.Click image for larger version. 

Name:	Brush.jpg 
Views:	156 
Size:	86.5 KB 
ID:	124115

 

 

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
  •