About 349,000 results
Open links in new tab
  1. turtle.color() method in Python - GeeksforGeeks

    Apr 4, 2025 · turtle.color() method is a function of the turtle module in Python used to change the color of the turtle’s pen and fill. It allows us to customize the appearance of shapes drawn by …

  2. Python turtle user input for shape and color - Stack Overflow

    Sep 3, 2016 · However, since you're using Python 3, we can use the new input dialog feature to dynamically prompt for input and make changes to the current drawing: shape = …

  3. Python turtle input with examples - Python Guides

    Nov 16, 2021 · This Python tutorial explains, Python turtle input, Python turtle input box, Python turtle input color, Python turtle input function, Python turtle raw_input, etc.

  4. turtleTurtle graphics — Python 3.13.3 documentation

    1 day ago · Color control¶ turtle. pencolor (* args) ¶ Return or set the pencolor. Four input formats are allowed: pencolor() Return the current pencolor as color specification string or as a tuple …

  5. Python Turtle Colors: A Comprehensive Guide - CodeRivers

    Jan 30, 2025 · In the turtle module, colors can be specified in several ways. The most common ways are by using color names or RGB (Red, Green, Blue) values. Color Names: Python turtle …

  6. Draw Color Filled Shapes in Turtle – Python | GeeksforGeeks

    May 6, 2025 · t.fillcolor(col) method sets the fill color based on the user's input. The t.circle(r) method draws a circle with the specified radius r. begin_fill() and end_fill() are used to fill the …

  7. python - How do I use a user Hexadecimal input as a turtle color ...

    Oct 3, 2021 · Use suga.color('#%s'% usernumber) and will work. Try changing your line: To. Or if the user isn't expected to add the # character themselves, then you could do: "#usernumber" …

  8. Python

    Use the color command to change the colour of the turtle. Specify the colour inside the brackets. Pay attention to the order of your code: and set the colour before programming the turtle to …

  9. Python Turtle Colors + Examples - Python Guides

    Oct 7, 2021 · in the following code, we import the turtle package as import turtle and give the turtle shape to the cursor and also give the pen color as “RGB”. turtle.shape (“turtle”) gives the …

  10. Python Turtle Graphics: Exploring Color Options | PetShun

    Jan 18, 2025 · In addition to setting the colour of the turtle, you can also set the fill colour for shapes drawn by the turtle using the turtle.fillcolor () method. This method accepts either a …

  11. Some results have been removed