Címke: point

LibreOffice 5.0

The Document Foundation has announced LibreOffice 5.0, bringing new features including the following useful LibreLogo extension: now it’s possible to join arbitrary number of points using the command POINT with CLOSE and FILL in PENUP mode. For example, drawing a chord is quite easy:
chord

CIRCLE 150
PENUP
FORWARD 75
POINT
BACK 75
RIGHT 60
FORWARD 75
POINT
CLOSE

or drawing a “flat” star:

flatstar

PENUP
REPEAT 5 [
    FORWARD 100
    POINT
    BACK 100
    RIGHT 360/10
    FORWARD 70
    POINT
    BACK 70
    RIGHT 360/10
]
FILLCOLOR “GOLD”
FILL

and drawing nice sheriff badges:
sheriff_mini

TO star n m
PENUP
PENSIZE n/m
REPEAT m [
    FORWARD n
    PENCOLOR “GOLD”
    POINT
    BACK n
    RIGHT 360/m/2
    FORWARD n*0.6
    PENCOLOR “INVISIBLE”
    POINT
    BACK n*0.6
    RIGHT 360/m/2
]
PENCOLOR “INVISIBLE”
FILLCOLOR  “GOLD”
FILL
PENSIZE n/m/3
FILLCOLOR “INVISIBLE”
PENCOLOR “WHITE”
PENDOWN
CIRCLE 2*n*0.6-n/m/3
PENUP
FONTSIZE n/4
FONTCOLOR “WHITE”
FONTFAMILY “Western”
TEXT “SHERIFF”
END

CLEARSCREEN
HOME
HIDETURTLE
PENUP
POSITION [130, 200]
HEADING 0
REPEAT 9 [
  PICTURE [
    star 70 2+REPCOUNT
  ]
  RIGHT 90
  FORWARD 160
  LEFT 90
  IF REPCOUNT % 3 = 0 [
    BACK 160
    RIGHT 90
    BACK 160*3
    LEFT 90
  ]
]