( self )
| 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( |