AxiTurtle
所属分类:collect
开发工具:Processing
文件大小:0KB
下载次数:0
上传日期:2018-04-25 09:33:55
上 传 者:
sh-1993
说明: 使用处理中的乌龟图形命令编程AxiDraw,
(Program AxiDraw with turtle graphics commands in Processing,)
文件列表:
AxiControl.pde (3728, 2018-04-25)
AxiGen1.pde (20950, 2018-04-25)
AxiTurtle.pde (2237, 2018-04-25)
Commands.pde (2929, 2018-04-25)
SimpleButton.pde (2459, 2018-04-25)
code/ (0, 2018-04-25)
code/sketch.properties (48, 2018-04-25)
data/ (0, 2018-04-25)
data/Miso-20.vlw (42258, 2018-04-25)
data/Miso-Light-16.vlw (29973, 2018-04-25)
data/background+help.psd (992999, 2018-04-25)
data/background.png (17711, 2018-04-25)
data/help.png (187970, 2018-04-25)
loopchecks.pde (2811, 2018-04-25)
utils.pde (5981, 2018-04-25)
# 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:
* Processing 3 (Download from: http://processing.org/download/ )
* Ani library ( http://www.looksgood.de/libraries/Ani/ )
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
```java
penUp(); // Shortcut u()
penDown(); // d()
```
## Relative move
```java
moveForward(distance); // f()
```
## Relative turns
```java
turnRight(angle); // r()
turnLeft(angle); // l()
```
## Absolute turns
```java
turnTo(angle); // t()
```
Angles for turn commands are 0.0 to 1.0
```java
turnRight(1/4); // Turn right 90
turnLeft(1/360); // Turn left 1
```
## Move (pen not drawing) and line (drawing)
### Relative
```java
moveBy(x, y);
lineBy(x, y);
```
### Absolute
```java
moveTo(x, y);
lineTo(x, y);
line(x1, y1, x2, y2);
```
近期下载者:
相关文件:
收藏者: