Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Turtle graphics
#11
(02-15-2024, 08:18 AM)Tomaaz Wrote: ...
For smaller programs you could skip that part completely. 
...

Thank you for your response. I decided to make a small experiment, 
- The first experiment : I used sprawdz () which has katzolwia> 360 and katzolwia<0
- The second experiment :  I skipped sprawdz () 

The results are
- The first experiment produced some "shifted green lines"
- The second experiment produced a clean blue line

   

Code:
set window "Turtle Proof",640,360

reset() 'set angle to 0
set color 0,0,0;cls 'clear screen
iteration = 100

' First Experiment
' Use sprawdz () which has katzolwia> 360 and katzolwia<0
set color 0,255,0 'green
goxy(300,120)
for i = 1 to iteration
    forward(50)
    turnleft(45)
next

' Second Experiment
' Skip sprawdz () which has katzolwia> 360 and katzolwia<0
set color 0,0,255 'blue
goxy(300,220)
for i = 1 to iteration
    forward(50)
    turnleft3(45)
next

'pause
pln "Press ENTER to quit"
temp = rln()
Reply


Messages In This Thread
Turtle graphics - by Tomaaz - 02-13-2024, 05:13 PM
RE: Turtle graphics - by Marcus - 02-13-2024, 05:58 PM
RE: Turtle graphics - by johnno56 - 02-13-2024, 07:28 PM
RE: Turtle graphics - by Tomaaz - 02-13-2024, 08:09 PM
RE: Turtle graphics - by johnno56 - 02-13-2024, 08:57 PM
RE: Turtle graphics - by Tomaaz - 02-13-2024, 11:37 PM
RE: Turtle graphics - by Marcus - 02-14-2024, 07:28 PM
RE: Turtle graphics - by Tomaaz - 02-14-2024, 08:54 PM
RE: Turtle graphics - by 1micha.elok - 02-15-2024, 04:11 AM
RE: Turtle graphics - by Tomaaz - 02-15-2024, 08:18 AM
RE: Turtle graphics - by 1micha.elok - 02-15-2024, 09:22 AM
RE: Turtle graphics - by Tomaaz - 02-15-2024, 12:17 PM
RE: Turtle graphics - by Marcus - 02-15-2024, 06:59 PM
RE: Turtle graphics - by Tomaaz - 02-15-2024, 08:35 PM
RE: Turtle graphics - by 1micha.elok - 02-16-2024, 02:22 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)