From 143debb5f656ffd8054e978034ef08451ed528d3 Mon Sep 17 00:00:00 2001 From: CodePanter Date: Thu, 28 Apr 2016 20:26:21 +0200 Subject: [PATCH] Imported 'MAX_PIXELS' and replaced a hard coded pixel maximum. --- client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.py b/client.py index 61085f4..4bfcd66 100755 --- a/client.py +++ b/client.py @@ -9,11 +9,11 @@ __version__ = 0.3 __author__ = "Jan Klopper " import random -from vloed import PixelVloedClient, NewMessage, RGBPixel +from vloed import PixelVloedClient, NewMessage, RGBPixel, MAX_PIXELS def RandomFill(message, width, height): """Generates a random number of pixels with a random color""" - for pixel in xrange(0, random.randint(10, 140)): + for pixel in xrange(0, random.randint(10, MAX_PIXELS)): pixel = RGBPixel(random.randint(0, width), random.randint(0, height), random.randint(0, 255),