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

Xisabla/Turtle-Drawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Turtle Drawer school project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published