The line segment tool (shortcut /) is the most simple of the line tools allowing you to draw straight lines. Select the tool, click hold and drag on the canvas to draw a line. If you hold shift as you draw the line will be constrained to 45 degree angles. By default the colour is a stroke on the path that you have drawn. There is a menu above the canvas where you can increase the stroke or change the stroke colour. You can even add a fill if you like.
The next tool down is the Arc tool. It allows you to draw simple arcs and maintain tight control about how they appear. Click hold and draw on the canvas to see an Arc. Again if you hold down shift it will be constrained. Further options for the tool can be seen by double clicking the icon in the tool bar. This brings up the following menu.
You can set the X and Y axis, open or close the arc and flip the arc to all four corners. The contact slope slider bar lets you set the arc precisely.
This tool lets you draw spirals and modify how those spirals can appear. This can be really useful for drawing organic shapes and backgrounds. The options allow you to specify the shape of your spiral.
This is the radius from the centre point of the spiral to the edge
This is the amount each segment of your spiral will decay. The closer to 100% it is the more circular it will be (100% is a circle). The closer to 5% the straighter the line.
This is the number of segments in the spiral. The larger the number the more circles there will be. Each circle has 4 segments.
This is the orientation of the spiral
There is a good tutorial on spirals over at Veerle’s Blog.
This is a simple tool that lets you draw rectangular grids. Double click the icon in the toolbar to bring up the options.
You can specify the default size here and set the horizontal and vertical dividers.
Finally you can draw polar grids with the Polar Grid Tool. Double click the option to bring up the Tool options.
Set the default size first. The concentric dividers are the number of circles that will be on the polar grid. The radial dividers are the lines that will come out from the centre.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Using HashiCorp Vault with LDAP
How to use HashiCorp Vault to setup an LDAP backed secret store with read-only access for users in groups and read-write access for specific users
Linux and Unix xargs command tutorial with examples
Tutorial on using xargs, a UNIX and Linux command for building and executing command lines from standard input. Examples of cutting by character, byte position, cutting based on delimiter and how to modify the output delimiter.
Copy a file in Go
How to copy a file in Go. The ioutil package does not offer a shorthand way of copying a file. Instead the os package should be used.