Claude cleanup

This commit is contained in:
2026-08-26 10:38:56 +02:00
parent bd8925a278
commit 7aa7fe4693
8 changed files with 104 additions and 32 deletions

View File

@@ -26,12 +26,6 @@ class ColorRGBW:
assert 0<= other <= 1
return ColorRGBW(self.r * other, self.g * other, self.b * other, self.w * other)
def __eq__(self, other:'ColorRGBW'):
return self.r == other.r and self.g == other.g and self.b == other.b and self.w == other.w
def __neq__(self, other:'ColorRGBW'):
return not self == other
def without_white_channel(self, scale=1):
args = (min(1, e + self.w) for e in (self.r, self.g, self.b) )
return ColorRGBW(*args, 0)