Rectangle with 45 degree angle

Post questions on how to use or achieve an effect in Inkscape.
MaggieA
Posts: 6
Joined: Fri Jul 26, 2013 4:22 pm

Rectangle with 45 degree angle

Postby MaggieA » Fri Jul 26, 2013 4:45 pm

Hello everyone

I am trying to create a rectangle with a 45 degree angle one end that will stay at 45 degrees when the size of the shape is increased. I also want to be able to colour it, duplicate,re-colour, rotate and join with the original to form one unit. I have tried several ways but cannot get the 45 degree angle to stay true. I have created a triangle and joined it to a rectanle but the unit is not a solid unit as there is the joining line showing and I cannot join it with another.

I'm very new to Graphics and have only been using Inkscape for 2 weeks.

Many thanks
Maggie

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Rectangle with 45 degree angle

Postby Lazur » Sat Jul 27, 2013 10:19 am

Welcome aboard!

Most probably you are on the right track with "joining" a triangle to the rectangle.
You can position them right by the align and distribute panel (Ctrl+Shift+A), or, perhaps by some snapping.
You can group them together by pressing Ctrl+G when both are seleted.
Still, you cannot transform the group without transforming the rectangle-part with it.
You may use the node editor tool to resize the rectangle part -preferably you can turn the rectangle to a path by pressing Shift+Ctrl+C.

If you show us an image of what you would like to draw, we may understand the problem more and could give you better advices.

User avatar
samueldellicour
Posts: 26
Joined: Mon Jul 01, 2013 11:03 pm
Location: Belgium
Contact:

Re: Rectangle with 45 degree angle

Postby samueldellicour » Wed Jul 31, 2013 11:04 am

Another way to do it, is to use another shape, rotated 45 degrees, to "cut away" a part of the rectangle:
- Draw your rectangle, for example a wide, horizontal rectangle (wider than it should be)
- Draw another rectangle or square, twice as big as your first rectangle. Give it a different color.
- Rotate this second rectangle 45 degrees (click twice on the rectangle, select the rotate handles, drag the while holding Shift to get 45 degrees).
- Move this rotated rectangle above the first one, overlapping one side, over the whole left border for example.
- Select both rectangles, choose in menu: Path > Difference. This will cut away the overlapping part (and make the second rectangel disappear), to get a triangular shaped edge.

Does this help ?

MaggieA
Posts: 6
Joined: Fri Jul 26, 2013 4:22 pm

Re: Rectangle with 45 degree angle

Postby MaggieA » Wed Jul 31, 2013 8:30 pm

Hi there

thanks for the reply........I still haven't figured out how to upload an image here so thought of a simpler explanation of what I want to do: I want to create a rectangle with a 45 degree line anywhere in the rectangle and colour one end red and the other blue.

Thanks
Maggie

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Rectangle with 45 degree angle

Postby Lazur » Wed Jul 31, 2013 8:36 pm

Hi.

You can attach files here through the upload attachment panel.
Or use an image host, then copy the image's url and insert them in your post between [img]and[/img] tags.

I still cannot understand what do you mean by colouring the two ends with a different colour.

SVG Image

MaggieA
Posts: 6
Joined: Fri Jul 26, 2013 4:22 pm

Re: Rectangle with 45 degree angle

Postby MaggieA » Wed Jul 31, 2013 10:52 pm

Hi there

The 45 angle cuts the whole rectangle in two from one side to the other. am going to try to upload an image (didn't work last time I tried...sorry a little slow to learn sometimes)

Image

Thanks
Maggie

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Rectangle with 45 degree angle

Postby Lazur » Wed Jul 31, 2013 10:57 pm

Hi.

The dropbox works a bit differently, the share url should be edited at the www part to be dl.
Like:

Code: Select all

[url=https://dl.dropboxusercontent.com/s/edjhnrjq6x29o0s/Block%201.png][img]https://dl.dropboxusercontent.com/s/edjhnrjq6x29o0s/Block%201.png[/img][/url]


Image

Don't worry, it took me several posts to learn that too.


Here are two ways how todraw such:

SVG Image

MaggieA
Posts: 6
Joined: Fri Jul 26, 2013 4:22 pm

Re: Rectangle with 45 degree angle

Postby MaggieA » Thu Aug 01, 2013 7:22 am

Oh, thank you.....will try both out later today and let you know how I go.

Maggie

MaggieA
Posts: 6
Joined: Fri Jul 26, 2013 4:22 pm

Re: Rectangle with 45 degree angle

Postby MaggieA » Mon Sep 02, 2013 5:56 pm

Finally got to this and created my units with no problem. Thank you so much for this.


Return to “Help with using Inkscape”