14 Topics
|
|
A little fun with Python's turtle module drawing a number of random stars in the dark sky. |
|
Just in time for the season, a star. (Playing with my grandson on the Raspberry Pi computer) |
|
This is my first try with turtle graphics in Python. It is in fact a sort of "translation" from some old LOGO code. When you run it, this should be the result: ![dbf0a4f76975c5cc4dee5df30139f144](/attachments/small/1/dbf0a4f76975c5cc4dee5df30139f144.png "align-left") Insiders can perhaps play the "Dark side of the moon" record by Pink Floyd :) Any … |
|
How to exit a program but keep the turtle window open? I have tried exit() but it doesn't keep the turtle window open |
|
I am doing an assignment for university, so I can't exactly post the code. So I will have to explain the best I can. I have to draw 3 stars in a row, 5 points, 6 points, 7 points. We have to do it using a for loop and the … |
|
Python module turtle makes it simple to draw graphics art similar to art done by the Logo language. |
|
Using Python module turtle to draw a Koch snow fractal. |
|
import turtle def f(): turtle.forward(10) def l(): turtle.left(1) def r(): turtle.right(1) def b(): turtle.back(5) turtle.onkey(f,"Up") turtle.onkey(l,"Left") turtle.onkey(r,"Right") turtle.onkey(b,"Down") turtle.showturtle() turtle.listen() while True: print, EDIT: add `turtle.showturtle()` but STILL doesn't work |
|
hi guys, i was wondering if anyone knew how to make a color wheel in python using turtle. i'v searched all over the web to see examples but haven't had any luck. i am a beginner programmer and it's very confusing to say the least so any explanations would be … |
|
Hello, I'm new and I was wondering how to do these things in python using turtle graphics... but don't know how to do it: 1.Write a program that draws a red line connecting two points (-39,48) and (50, -50) and displays the coordinates of the two points. 2. How to … |
|
Can someone please help me "write a drawTree method for the Turtle class" I am given the following information: World w = new World(); Turtle t = newTurtle (320, 480, w); The turtle will begin at the middle of the bottom of the World, facing North. Use the drawRectangle method … |
|
hi. i am trying to use two turtles in separate windows simultaneously in python but nothing found yet. i have tried multithreadding but still the same. can somebody help me please. thanks. |
|
I post here the code for histogram using the turtle graphics module, which I posted long time ago in discussion thread. For more special graphs there exist other fancier options, but this tkinter based routine can function in most standard installations of Python. Example data.txt, like mentioned in module docstring: … |
|
I can't get this to generate random shapes, etc. Basically what I need to do is randomly generate similar lists consisting of: combinations of 'square', 'triangle', 'circle' and 'left'. And random numbers from 1 to 10 for physical dimensions and 10 to 90 for angles Have the program use 'split' … |
The End.