| Name | Description | Size | ||
|---|---|---|---|---|
|
Same as Kandinsky, but (0, 0) is located on the middle of the screen, or (160, 111) in Kandinsky coordinates.
Needs draw_line.py to draw straight lines for the line() function.
|
582 Bytes |
|
||
|
Draws a line using either Bresenham’s line algorithm (-> https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm) which is fast as it uses only two colors, when alias = True, or Xiaolin Wu’s line algorithm (-> https://en.wikipedia.org/wiki/Xiaolin_Wu%27s_line_algorithm) which is slower as it uses opacity to improve line resolution, when alias = False.
This script was made to be imported in my project_3d script via the descartes.py script.
|
2.09 KB |
|
||
|
|
4.86 KB |
|
||
|
|
588 Bytes |
|
||
|
Projects a 3D object.
The x, y and z axes are modelled as lines in red, green and blue respectively.
Needs descartes.py for the graphics, which also needs draw_line.py to draw lines.
__________________
Commands:
Toolbox: toggle between modes; in editor mode, displays the angles along every axis
In Observer Mode (Toolbox):
Up Arrow: Increment camera angle along x-axis.
Down Arrow: Excrement camera angle along x-axis.
Left Arrow: Increment camera angle along y-axis.
Right Arrrow: Excrement camera angle along y-axis.
Right Parenthesis: Increment camera angle along z-axis.
Left Parenthesis: Excrement camera angle along z-axis.
Plus Key: Zoom in on the origin.
Minus Key: Zoom out on the origin.
In Editor Mode (Toolbox):
Var Key: Select an object
Up Arrow: Increment object angle along x-axis.
Down Arrow: Excrement object angle along x-axis.
Left Arrow: Increment object angle along y-axis.
Right Arrrow: Excrement object angle along y-axis.
Right Parenthesis: Increment object angle along z-axis.
Left Parenthesis: Excrement object angle along z-axis.
Plus Key: Enlarge the object.
Minus Key: Reduce the object.
More commands and improvements are yet to come; if you have any ideas please let me know on TI-Planet here: https://tiplanet.org/forum/viewtopic.php?f=100&t=27255
|
6.66 KB |
|
||
|
|
308 Bytes |
|
||
|
|
316 Bytes |
|