10 lines
240 B
Python
10 lines
240 B
Python
|
|
||
|
class Container():
|
||
|
def __init__( self, max, y = 0, g = 0, b = 0 ):
|
||
|
self.y, self.g, self.b = y, g, b
|
||
|
|
||
|
def empty( self ):
|
||
|
self.y, self.g, self.b = 0,0,0
|
||
|
|
||
|
def status( self ):
|
||
|
return [self.y, self.g, self.b]
|