Python Forum
Create a turtle drawing from .txt file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create a turtle drawing from .txt file
#1
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
Reply


Messages In This Thread
Create a turtle drawing from .txt file - by Noob101 - Jan-25-2021, 02:01 PM
RE: Create a turtle drawing from .txt file - by Log - Jan-29-2021, 12:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Newbie here. Create an array from file data? Rayj00 2 1,282 Jan-13-2023, 01:35 PM
Last Post: perfringo
  how can i create a dictionary of dictionaries from a file Astone 2 2,292 Oct-26-2020, 02:40 PM
Last Post: DeaD_EyE
  Drawing wheels in a turtle woehh 1 1,929 Apr-23-2020, 02:58 PM
Last Post: deanhystad
  Turtle Polygon drawing program tp_oz 3 3,221 Jul-23-2019, 01:01 PM
Last Post: ichabod801
  Turtle drawing Right Triangle Zatoichi 3 5,765 Feb-26-2018, 12:24 AM
Last Post: Zatoichi
  Unable to create csv file Sumaira 2 3,286 Feb-06-2018, 03:43 AM
Last Post: Sumaira
  Help drawing circles with turtle songminguk 3 4,528 Dec-19-2017, 08:43 PM
Last Post: squenson

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020