sugar3.graphics.xocolor module

This class represents all of the colors that the XO can take on. Each pair of colors represents the fill color and the stroke color

class sugar3.graphics.xocolor.XoColor(color_string=None)

Defines color for XO

Parameters:color_string (string) – two html format strings separated by a comma, “white”, or “insensitive”. If color_string is None, the user’s color will be created. If parsed_color cannot be created, a random color will be used
get_fill_color()

Returns fill color in standard HTML format (#FFFFFF)

get_stroke_color()

Returns stroke color in standard HTML format (#FFFFFF)

to_string()

Returns a formatted string in the format #STROKEHEX,#FILLHEX