From b02cc8d49513cdcc54f4421e71db3512354d4e2e Mon Sep 17 00:00:00 2001 From: yo mama Date: Sat, 10 Oct 2015 02:54:41 -0700 Subject: renamed options to selections --- ricky/param/color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ricky/param/color.py') 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"] -- cgit v1.2.3-70-g09d2