SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Diagonal Lines

  1. #1
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Diagonal Lines

    I don't have access to Illustrator so I am stuck using Photoshop at the moment. I would like to divide a rectangle with a diagonal line and have each half a different color. This is very easy to do in Illustrator but somehow the method evades me in Photoshop. Can someone help please?

  2. #2
    SitePoint Zealot vargz's Avatar
    Join Date
    Apr 2003
    Location
    South Australia
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok this one is off the top of my head...there should be a better method.

    Select the polygonal lasso tool. Create a line along the top edge, then down one of the sides then diagonally to connect to your starting point. You will have a triangular selection. Create a new layer and fill the selection with a colour. Repeat for the other half of the rectangle.

  3. #3
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If you want to keep the line as a vector element, create a line, click at the top corner (guides may be useful), hold down shift and drag to the bottom corner.

    You can then merge your two layers if you want, or just use them as separate selection layers.

    That may be too vague. The above solution would work as well though, just giving you options

    J
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  4. #4
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the rectangle is square, use a 3 sided polygon tool and hold down shift. Drag out the triangle to whatever size you want. Duplicate the layer and flip vertically and horizontally.Fill each triangle with the color of your choice. You might have to adjust the layer positioning to fit them together.
    Aaron Brazell
    Technosailor



  5. #5
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks everyone. I ended up using the selction tool and free transform. Pah, this is a new system so I haven't got round to installing Illustrator yet but boy I do miss it!

  6. #6
    SitePoint Addict theGuest's Avatar
    Join Date
    Jun 2002
    Location
    Vancouver, BC Canada
    Posts
    372
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    aaa... call me radically extreme, but... isn't this as simple as using the line tool to draw the diagnal line across your rectangle, then using the Paint Bucket to fill each half with your desired colour... it's not a complicated task... really...

    aaa the simple tools...


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
  •