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

Method darken

recipes/Python/577674_Bitmap_Maker/recipe-577674.py:110–115  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

108 )
109
110 def darken( self ):
111 return Color(
112 max( self.red - Color.__shade, 0),
113 max( self.grn - Color.__shade, 0),
114 max( self.blu - Color.__shade, 0)
115 )
116
117 def toLong( self ):
118 return self.__hash__()

Callers

nothing calls this directly

Calls 2

ColorClass · 0.70
maxFunction · 0.50

Tested by

no test coverage detected