Jan-25-2021, 02:01 PM
Hi, haven't touched any coding language for ages and it's killing me atm.
Got an assignment that wants me to create a program that reads a .txt file of numbers and colors, and draws it out as a star shape with different colors. I've got no problem with actually creating a normal turtle code, but everything stops for me when I'm supposed to create a code that "draws" this file out. I can create something that prints out the strings, but that's it, no drawing. It's color, turtle to the right and then turtle forward
black
15
200
lightgray
150
200
black
300
200
lightgray
150
200
black
300
200
lightgray
150
200
black
300
200
lightgray
150
200
Anyone that can help me out? Or guide me to a youtube video/site that shows something similar to this? I've googled for ages without results
Got an assignment that wants me to create a program that reads a .txt file of numbers and colors, and draws it out as a star shape with different colors. I've got no problem with actually creating a normal turtle code, but everything stops for me when I'm supposed to create a code that "draws" this file out. I can create something that prints out the strings, but that's it, no drawing. It's color, turtle to the right and then turtle forward
black
15
200
lightgray
150
200
black
300
200
lightgray
150
200
black
300
200
lightgray
150
200
black
300
200
lightgray
150
200
Anyone that can help me out? Or guide me to a youtube video/site that shows something similar to this? I've googled for ages without results