Color

class simframe.utils.Color(color='reset')[source]

Bases: object

Class to decorate strings with color tags.

Attributes
color

Of type Color with color information.

Methods

__call__(s[, color])

Colorizes string

Attributes Summary

color

Of type Color with color information.

Methods Summary

__call__(s[, color])

Colorizes string

Attributes Documentation

color

Of type Color with color information.

Methods Documentation

__call__(s, color=None)[source]

Colorizes string

Parameters
  • s (string) – String to be colorized

  • color (string, optional, default : None) – Color used to colorize. If None, standard color is used

Returns

cstr – Colorized string

Return type

string