These elements are joined by straight lines, from the end of one to the start of the next. The resulting figure can be filled like a polygon, or just outlined. Use this method to plot a pixel image, in the form of a PIL Image object. Member variables red , green , and blue are public and may be safely read or modified. Otherwise, the colors are ordered first by red, then by green, and finally by blue.
Colors are hashable.
So if, for example, you use a color as a key in a dictionary, another color equal to it will map to the same entry, even if it is a different Color object in memory. This is the way colors are defined in HTML, and is often a convenient means of specification. The predefined color constants are shown in the table below. Specify this as the fill color for shapes you don't want filled, or the line color for shapes you don't want outlined. Font Font encapsulates a font and font style.