| Name | Description | Size | Visibility | ||
|---|---|---|---|---|---|
|
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.
|
581 Bytes | Public |
|
||
|
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 | Public |
|
||
|
|
588 Bytes | Public |
|
||
|
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:
Up Arrow: Increment angle along x-axis.
Down Arrow: Excrement angle along x-axis.
Left Arrow: Increment angle along y-axis.
Right Arrrow: Excrement angle along y-axis.
Right Parenthesis: Increment angle along z-axis.
Left Parenthesis: Excrement angle along z-axis.
Plus Key: Zoom in on the origin.
Minus Key: Zoom out on the origin.
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
|
3.14 KB | Public |
|
||
|
|
308 Bytes | Public |
|
||
|
|
316 Bytes | Public |
|