Turtle LibreLogo
Tilbake til startsida
 

 

Filling Shapes

You can fill the shapes you paint with various hatches and different colors. If the figure is not closed, that is if the lines do not results in a complete shape, LibreLogo will close the shape before before filling it. If you would like to see the closed figure, you can use the command CLOSE.

To fill a figure, use the command FILL.

Solid color

Use the command FILLCOLOR "color name" where “color name” is one of the standard color names in Libre Logo or as listed in “Changing the Line color” in the chapter “The pen”. You can combine FILLCOLOR with the next command to set the background color of the hatch.

Hatching

skraverstil

Hatching of the figure can be done with eleven different standard pattern or with a self made pattern. The standard hatchings are shown in the figure above. The command is: FILLSTYLE x where x has a value from 0 to 10 representing one of the standard styles. The default setting is FILLSTYLE 0 (solid color).

In addition, you can also define your own fill style with FILLSTYLE [custom style]. The custom style is a list like this: FILLSTYLE [2, "blue", 5, 30°]. The first number defines how many lines hatches should have, 1, 2 or 3. The second element is the color of the lines. You can use any method to set the color. The third element determines the distance between the lines and the fourth element sets the line angle lines relative to the page. You don't have to use the degree symbol (°); it is included to show that it is possible to use it.


© Context and design: Kolbjørn StuestølStuestøl homesite (in Norwegian)Modified February 11 2016