Just found a applications that programs the trigonometry using a turtle as cursor . And I just found an indigenuous way to program the turtle to draw a Swastika. (P.S: Not a pro-Nazi here)
Below is the sample code for the K Turtle to draw the Swastika
===================================================
clear
reset
repeat 4 {
forward 50
turnright 90
wait 0.1
forward 50
turnleft 180
wait 0.1
forward 50
turnleft 270
wait 0.1
turnright 180
forward 50
wait 0.1
turnleft 270
forward 50
wait 0.1
}
==================================================
Here is the sample print screen of the K turtle drawing Swastika
Strictly in sense of speaking, it is not a swastika at all. . .
No comments:
Post a Comment