May-01-2020, 05:41 AM
May-01-2020, 05:49 AM
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.May-01-2020, 06:16 AM
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.
May-01-2020, 06:50 AM
tkinter color chart
[Image: tkcolor.png]
[Image: tkcolor.png]
May-01-2020, 11:11 PM
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.
May-02-2020, 12:01 AM
another source: https://www.w3schools.com/colors/colors_names.asp
and to mix your own: https://www.w3schools.com/colors/colors_picker.asp
and to mix your own: https://www.w3schools.com/colors/colors_picker.asp
May-02-2020, 12:53 AM
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()
May-02-2020, 05:07 AM
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
Sep-12-2022, 02:53 PM
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/.