Skip to content

Commit 8af0fa2

Browse files
authored
Update random_color_hex.py
1 parent bd9bc16 commit 8af0fa2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

random_color_hex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class RandomColorHex:
2626
EpochCount={'S':0,'M':0,'L':0,'SL':0}
2727
EpochSize={'S':663,'M':68,'L':40,'SL':23}
2828
_auto_reset_registered=False
29+
MassProduction = False
2930

3031
@classmethod
3132
def _reset(cls):
@@ -39,6 +40,7 @@ def _register_auto_reset(cls):
3940
if not cls._auto_reset_registered:
4041
atexit.register(cls._reset)
4142
cls._auto_reset_registered=True
43+
MassProduction = False
4244

4345
def __init__(self):
4446
"""Initialize internal buffers and near-white masks.
@@ -53,7 +55,6 @@ def __init__(self):
5355
self.RandomHexCode=[] #So you can access the code later for any instance
5456
self.NearWhiteMasks=['FHFHFH','FXFXFX','FHFHFX','XFHFHF','EHFHFH','HHHHHH'] #neutral, warm, cool, very light gray
5557
self._register_auto_reset()
56-
self.MassProduction=False
5758

5859
def MatchesMask(self, hex6, mask):
5960
"""Return True if the 6-char hex string matches a mask.

0 commit comments

Comments
 (0)