Skip to content
← Back to Community
How many colors are there
Profile icon
kannibalistic

HI everyone I know this question might be a little stupid, but since im working with the turtle spiral, I will ask it. How many colors does python support?

Answered by MrVoo [earned 5 cycles]
View Answer
Voters
Profile icon
rickysong
Profile icon
mechtank
Profile icon
kannibalistic
Profile icon
maxina
Comments
hotnewtop
Profile icon
MrVoo

If you use RGB colors, then about 16 million :)

Profile icon
kannibalistic

@MrVoo i mean the names

Profile icon
CosmicBear

@kannibalistic for RGB, (1,0,0,),(2,0,0),(3,0,0),(4,0,0) ect until (255,255,255). About 16 - 17 million colours.

Profile icon
SixBeeps

@kannibalistic Python Turtle is based on Tk, which has these named colors. There are about 750 of them.

Profile icon
kannibalistic

@SixBeeps finally righteous answer

Profile icon
MrVoo

@kannibalistic All you have to do is google a list?

Profile icon
IMayBeMe

It depends on the amount of bits. Most displays nowadays use 24 bit pixels which can render around 16,777,000 colors but some older models tend to use 16 bit displays that can display around 65,000 colors

Profile icon
kannibalistic

oh thanx everyone =D