summaryrefslogtreecommitdiff
path: root/ricky/param/color.py
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-10-10 02:54:41 -0700
committeryo mama <pepper@scannerjammer.com>2015-10-10 02:54:41 -0700
commitb02cc8d49513cdcc54f4421e71db3512354d4e2e (patch)
tree2a3a83e1f99a1108eedb703d2cf8ed43613b2c22 /ricky/param/color.py
parent52d85ddcb9c934ec4dc0e890633762bfa2ff51f5 (diff)
renamed options to selections
Diffstat (limited to 'ricky/param/color.py')
-rw-r--r--ricky/param/color.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ricky/param/color.py b/ricky/param/color.py
index ecec79c..4d9f4d5 100644
--- a/ricky/param/color.py
+++ b/ricky/param/color.py
@@ -23,11 +23,11 @@ class Color(Param):
def randomize(self):
weights_total = sum(
- map(lambda x: x["weight"], self.options())
+ map(lambda x: x["weight"], self.selections())
) + (255 * 255 * 255)
choice = random.randint(0, weights_total)
position = 0
- for elem in self.options():
+ for elem in self.selections():
position += elem["weight"]
if position >= choice:
self.value = elem["value"]