(color)
| 31 | |
| 32 | |
| 33 | def rgbToHex(color): |
| 34 | if len(color) == 4: |
| 35 | c = color[:3] |
| 36 | opacity = color[3] |
| 37 | else: |
| 38 | c = color |
| 39 | opacity = 1.0 |
| 40 | hex_color = "0x%02x%02x%02x" % (int(c[0] * 255), int(c[1] * 255), int(c[2] * 255)) |
| 41 | return hex_color, opacity |
| 42 | |
| 43 | |
| 44 | def register_object( |
nothing calls this directly
no outgoing calls
no test coverage detected