Friday, August 26, 2016

Gui elements: The Arrow

Creating a graphical user interface in Gimp

Part 6: The Arrow

If you need to grab some attention, or just generate a direction, the arrow works nice.
This is a quick and easy way to create one without worrying about symmetry.

Step 1:

After creating a new image with a transparent background, add a new layer with its width, and height set to 32. Make sure it has a transparent fill.

Step 2:

Fill the new layer with Sky Blue 1 from the Tango palette.

Step 3:

We'll use the Align tool to center the layer to the middle of the image.

Step 4:

Click on the new layer, then center it just like we did in the previous tutorial.

Step 5:

Click on the rotate layer tool, and then click on the new layer to change its angle.
On the dialog that pops up type in 45.00, then hit enter, and then click Rotate.

Step 6:

With the layer rotated, grab the rectangle selection tool. 
Now click at the top of the image, and drag right till you see the x axis at the center of the image.
It was 128, for this 256 pixel image.

Step 7:

With the selection on the new layer, right click, and choose cut, or clear to get rid of half the texture.
Then, release the selection. You can autocrop and export that as your arrow, or in the next steps make it into a rounded version.

Step 8:

Right click in the layers dialog and choose layer to image size.

Step 9:

Using the Morph Selection script we'll make a mask to round the corners.
Right click> Selection> Morph Selection.
Set the scale to 3, and hit ok.

Step 10:

That will give you a new rounded layer.

Step 11:

Go to that layer in the layers dialog, and grab its selection. Right click >Alpha to selection.

Step 12:

Invert the selection. Right click> Selection> Invert Selection. 

Step 13:

Go back to the layer with the blue arrow.
Right click on the image> Edit> Clear.

Step 14:

You can now autocrop that layer, and delete the other layers to export the rounded arrow.

No comments:

Post a Comment