02-16-2024, 02:22 AM
Wonderful
Thank you Tomaaz, your Turtle library is very useful to produce amazing turtle graphics / arts.
Thank you also to Marcus for giving us an insight regarding numbers in n7.
Herewith another turtle experiment :
First experiment : turtle library contained int()
produced "shifted green lines"
Second experiment : turtle library without int()
produced clean blue lines
Thank you Tomaaz, your Turtle library is very useful to produce amazing turtle graphics / arts.
Thank you also to Marcus for giving us an insight regarding numbers in n7.
Herewith another turtle experiment :
First experiment : turtle library contained int()
produced "shifted green lines"
Second experiment : turtle library without int()
produced clean blue lines
Code:
'-------------------------------------------------------------
' Modified turtle library
' First Experiment : function forward (dlugosc) with int()
' Second Experiment :function forward3(dlugosc) without int()
'-------------------------------------------------------------
include "turtle_modified.n7"
set window "Turtle Experiment",640,360
reset() 'set angle to 0
set color 0,0,0;cls 'clear screen
iteration = 100
'FIRST experiment
set color 0,255,0 'green
goxy(300,120)
for i = 1 to iteration
forward(50)
turnleft(45)
next
'SECOND experiment
set color 0,0,255 'blue
goxy(350,120)
for i = 1 to iteration
forward3(50)
turnleft(45)
next
'pause
pln "Press ENTER to quit"
temp = rln()