enable.savage.svg.css.colour module

Parsing for CSS colour values. Supported formats:

  • hex literal short: #fff

  • hex literal long: #fafafa

  • rgb bytes: rgb(255,100,0)

  • rgb percent: rgb(100%,100%,0%)

  • named color: black

enable.savage.svg.css.colour.clampColourByte(val)[source]
enable.savage.svg.css.colour.clampColourPerc(val)[source]
enable.savage.svg.css.colour.parseColorPerc(token)[source]
enable.savage.svg.css.colour.parseNamedColour(t)[source]
enable.savage.svg.css.colour.parseShortHex(t)[source]