# `ColorPalette`

digraph inheritance627caa4e20 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "ColorPalette" [URL="#taurus.core.util.colors.ColorPalette",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Provides the list of taurus colors equivalent to Tango colors."]; }

class ColorPalette(dat, int_decoder_dict=None)

  Provides the list of taurus colors equivalent to Tango colors.

  Import from `taurus.core.util.colors` as:

      from taurus.core.util.colors import ColorPalette

  format_SimStates(var='T1')
  has(name)
  hex(stoq, fmt='%06x', fg=False)

    Returns the rgb colors as string of lowercase hexadecimal characters

  htmlStyle(htmlTag, stoq)
  name(stoq, fg=False)

    Returns the name of the color.

  number(stoq, fg=False)

    Returns the colors as a number, suitable for conversion to hexadecimal as argument to QtGui.QColor.

  qtStyleSheet(stoq)
  rgb(stoq, fg=False)

    Returns a triplet of rgb colors in the range of 0 .. 255.

  rgb_pair(stoq)

    Returns pair of foreground and background colors.

  size()