Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
color names
#1
I want a list of all the color names usable for the turtle.color call. where or how do I find it?
Reply
#2
From the docs for turtle.color (here), it looks like you can specify colour specification strings, or tuples of RGB values. The docs do say the values you can use are the ones that are returned by the pencolor or fillcolor functions and the docs for those functions (e.g. https://docs.python.org/3/library/turtle....fillcolor) say the strings are Tk colour specification strings, so I'd check the Tk docs.
Reply
#3
Tk docs? I have spent a couple of days looking for that area in multiple areas over the past couple of days and no luck.
Reply
#4
tkinter color chart
[Image: tkcolor.png]
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#5
0OMG! what a list of colors! Thank you. I knew that with 0 to 255 in the RGB mode there would be a lot of combo's, but this might overload my idea for a spirograph program I have written. All I have now is the resister color code values, but I might extend it a little with this knowledge. Thank you.
Reply
#6
another source: https://www.w3schools.com/colors/colors_names.asp
and to mix your own: https://www.w3schools.com/colors/colors_picker.asp
Reply
#7
Here is another way to use rgb colors in tkinter that I found.
#! /usr/bin/env python3.8
'''Docstring'''
import tkinter as tk
def rgb_color(rgb):
    return '#%02x%02x%02x' % rgb


root = tk.Tk()
root.configure(bg=rgb_color((255,80,0)))
root.mainloop()
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#8
Thank you folks with all the information. I am still learning with all the help guides out there. My next trick, and it is not related to colors, and I have seen the commands to use, but if I don't learn it my way, it will not be right. Thanks
Reply
#9
Hi! As I see, the full list of colours for the platform has already been shared above. I hope this information helped you. I used it too. By the way, I recently learned about what colours people have buying your product or service. The majority of the scientific community is inclined to believe that the blue colour evokes trust and calmness. And it is not surprising why the largest social network in the world uses blue as the main one (we are talking about Facebook, of course). By the way, for the social network in which I sell my product, I used https://create.vista.com/colors/color-names/off-white/.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Turtle Star Fill Color Yellow-White Interchanging Color Effect codelab 9 1,040 Oct-25-2023, 09:09 AM
Last Post: codelab

Forum Jump:

User Panel Messages

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