MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / RGBA

Class RGBA

example_code/item_051.py:139–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138print("Example 14")
139class RGBA:
140 def __init__(self, *, red, green, blue, alpha=1.0):
141 self.red = red
142 self.green = green
143 self.blue = blue
144 self.alpha = alpha
145
146
147print("Example 15")

Callers 1

item_051.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected