summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-10-09 00:52:22 -0700
committeryo mama <pepper@scannerjammer.com>2015-10-09 00:52:22 -0700
commitc0abc6cae41f7fd9dc4f9c81a79bce18562277fd (patch)
tree30a1d02a9c02b9be458f2abd4e435317766aead9 /example.py
parentecd32cd78e8e9026cee409d21c9f29a0d8dff36f (diff)
better
Diffstat (limited to 'example.py')
-rwxr-xr-xexample.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/example.py b/example.py
index 600181e..3b2a91a 100755
--- a/example.py
+++ b/example.py
@@ -9,18 +9,13 @@ import time
#ok we are 32 and we need a from_dict method
#ok we are 32 and we need a from_dict method
-test_d = {'username': 'RICHARD_GIOVANNI', 'bevel': 'flatinner', 'saturation': '', 'rotate': 34, 'percentbeveled': 96, 'brightness': 79, 'stripenumber': 2, 'filetype': 'png', 'blurriness': 180, 'flip': '', 'height': 594, 'color1': 'rgb(191,125,24)', 'width': 536, 'color2': 'rgb(186,78,94)', 'gradienttype': 'mirrored', 'stripeintensity': 2515, 'tilt': 58, 'flop': '', 'halftone': 'etchedtransition', 'hue': 146}
-#for i in xrange(0,100):
-api = ImGradient()
-params = api.params_init()
-params.from_dict(test_d)
-#params.randomize()
-print params.as_dict()
-req = params.execute()
-print req
-#if not (i % 5):
-# time.sleep(2)
-
+for i in xrange(0,100):
+ api = ImGradient()
+ params = api.params_init()
+ params.randomize()
+ print params.as_dict()
+ req = params.execute()
+ print req
#api = ImPattern()
#params = api.params_init()