--- title: "Turtle Graphics Star" id: 77330 type: "computer_media" slug: "turtle-graphics-star" url: "http://localhost/computer_media/turtle-graphics-star/" markdown_url: "http://localhost/computer_media/turtle-graphics-star.md" published_at: "2026-11-15T18:39:08+00:00" modified_at: "2026-11-15T18:39:08+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "A SuperBASIC turtle-graphics demo: enter an odd number and the QL turtle draws a star with that many points." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" model: - name: "Sinclair QL" slug: "sinclair-ql" taxonomy: "model" url: "http://localhost/model/sinclair-ql/" indiv: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" media_type: "Diskette" programmers: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Turtle%20Graphics%20Star%20%281990%29%28Swenson%2C%20Timothy%29%28Sinclair%20QL%29%28US%29%28Program%29.zip" mediadate: "1990" article_media: - id: 23495 title: "Turtle Graphics" type: "article" url: "http://localhost/article/turtle-graphics-2/" media_type_tags: "Graphics" license: false --- # Turtle Graphics Star A short SuperBASIC demonstration of the QL’s built-in turtle graphics. Enter an odd number of sides and the turtle draws a star with that many points, using POINT, PENDOWN, TURNTO, MOVE and TURN; five sides give a five-pointed star. Tim Swenson suggests adding FILL statements to see what happens. The zip has the program as turtle_bas and a QL floppy image holding it: mount the image as FLP1_ and type LRUN flp1_turtle_bas. Published in Sinc-Link January-February 1990 ([Turtle Graphics](https://timexsinclair.com/article/turtle-graphics-2/)). ## Source Code ``` 100 CLS 110 INPUT "How many sides?"!sides 120 LET angle = (360*(INT(sides/2)))/sides 130 CLS 140 POINT 10,50 150 PENDOWN 160 TURNTO 0 170 FOR x = 1 TO sides 180 MOVE 50 190 TURN -angle 200 NEXT x 210 BEEP 2000,10 220 PAUSE 230 GO TO 100 ```