MCPcopy Create free account
hub / github.com/ActiveState/code / fromLong

Method fromLong

recipes/Python/577674_Bitmap_Maker/recipe-577674.py:120–126  ·  view source on GitHub ↗
( l )

Source from the content-addressed store, hash-verified

118 return self.__hash__()
119
120 def fromLong( l ):
121 b = l & 0xff
122 l = l >> 8
123 g = l & 0xff
124 l = l >> 8
125 r = l & 0xff
126 return Color( r, g, b )
127 fromLong = staticmethod(fromLong)
128
129# define class constants for common colors

Callers 2

setPenColorMethod · 0.45
getPenColorMethod · 0.45

Calls 1

ColorClass · 0.70

Tested by

no test coverage detected