MCPcopy Create free account
hub / github.com/Distrotech/reportlab / checkColor

Function checkColor

tools/pythonpoint/pythonpoint.py:203–210  ·  view source on GitHub ↗

Converts a color name to an RGB tuple, if possible.

(col)

Source from the content-addressed store, hash-verified

201
202
203def checkColor(col):
204 "Converts a color name to an RGB tuple, if possible."
205
206 if type(col) == type('') and col in dir(colors):
207 col = getattr(colors, col)
208 col = (col.red, col.green, col.blue)
209
210 return col
211
212
213def handleHiddenSlides(slides):

Callers 6

drawOnMethod · 0.85
drawOnMethod · 0.85
drawOnMethod · 0.85
drawOnMethod · 0.85
drawOnMethod · 0.85
drawOnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected