Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Latest commit

 

History

History
121 lines (86 loc) · 2.21 KB

README.md

File metadata and controls

121 lines (86 loc) · 2.21 KB

Turtle Drawing

The goal of this school project is to create a drawing tool based on the moves of a Cursor

Project Architecture

  • bin/ contains all the binary compiled runnable files
  • build/ contains all the compiled object files
  • doc/ contains all the documentation files at the Markdown, HTML, and PDF format
  • examples/ contains multiple folder that are each an example and contains a running script and a txt files
  • include/ is empty but would have contained third party includes
  • spikes/ contains small scripts for testing methods and libraries
  • src/ contains all the source files

Documentation

Compiling

make build

Running

It is recommended to clean old objects before running:

make clean run

Or

make clean build
./bin/app InstructionFile.txt

Examples

Pre made examples

make clean run SCRIPT=./examples/{example_name}/run.sh
make clean build
./examples/{example_name}/run.sh

Other ones

Rotating rectangles

Instructions:

setposition 250 250

block rotating_rectangle
    repeat 45
        forward 200
        rotate 89
        forward 100
        rotate 89

repeat 4
    call rotating_rectangle
    forward 100

setdefault
setposition 650 250

repeat 4
    setcolor 0 255 255
    call rotating_rectangle
    forward 100

setdefault
setposition 1050 250

repeat 4
    setcolorhex 008080
    call rotating_rectangle
    forward 100

Render:

Preview: Rotating Rectangles

Weird

Instructions:

setposition 500 100

repeat 5
    forward 100
    repeat 20
        forward 250
        rotate 59

Render:

Preview: Weird