Commit 3a257c1a authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

Add constructor of Color

parent 27a96e78
......@@ -15,6 +15,11 @@ class Color:
red: int
blue: int
def __init__(self, green, red, blue):
self.green = green
self.red = red
self.blue = blue
def as_tuple(self):
return self.green, self.red, self.blue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment