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

Method lighten

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

Source from the content-addressed store, hash-verified

101 return (self is other) or (self.toLong == other.toLong)
102
103 def lighten( self ):
104 return Color(
105 min( self.red + Color.__shade, 255),
106 min( self.grn + Color.__shade, 255),
107 min( self.blu + Color.__shade, 255)
108 )
109
110 def darken( self ):
111 return Color(

Callers

nothing calls this directly

Calls 2

minFunction · 0.85
ColorClass · 0.70

Tested by

no test coverage detected