Giter VIP home page Giter VIP logo

axiturtle's Introduction

AxiTurtle

An easy way to program AxiDraw and preview your drawing. Including turtle graphics commands!

Requirements to run application:

  • Sun Java Runtime 6, installed on your system

Additional requirements to run from source code:

Based on EvilMadScientist's AxiGen example, hiding it's complexity, but providing an easy (turtle graphics) programming interface. https://github.com/evil-mad/AxiDraw-Processing

Based RoboPaint RT: https://github.com/evil-mad/robopaint-rt

Turtle graphics commands are based on "Laser Turtle": https://forresto.github.io/turtle-svg/

The turtle starts in the upper left corner facing right. Angles: 0 is right, 1/4 is up, 1/2 is left, 3/4 is down

Pen commands

penUp(); // Shortcut u()
penDown(); // d()

Relative move

moveForward(distance); // f()

Relative turns

turnRight(angle); // r()
turnLeft(angle); // l()

Absolute turns

turnTo(angle); // t()

Angles for turn commands are 0.0 to 1.0

turnRight(1/4); // Turn right 90º
turnLeft(1/360); // Turn left 1º

Move (pen not drawing) and line (drawing)

Relative

moveBy(x, y); 
lineBy(x, y);

Absolute

moveTo(x, y); 
lineTo(x, y);
line(x1, y1, x2, y2);

axiturtle's People

Contributors

ralphcrutzen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.