diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-10-08 19:35:12 -0700 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-10-08 19:35:12 -0700 |
| commit | 2c525be865efe06088425369813240992e02b373 (patch) | |
| tree | 128e10a4f4bd2932009a6cefb2b14d426530bdb1 /example.py | |
| parent | 3629cf6d6d2b28f277c6d4d0e32ac10e4403ab85 (diff) | |
fixed a lot of things
Diffstat (limited to 'example.py')
| -rwxr-xr-x | example.py | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -5,33 +5,43 @@ from ricky.imgrid import ImGrid from ricky.imbreak import ImBreak from ricky.imgradient import ImGradient import pprint +import time -api = ImPattern() +#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.randomize() +params.from_dict(test_d) +#params.randomize() print params.as_dict() req = params.execute() print req +#if not (i % 5): +# time.sleep(2) -#api = ImGrid() + +#api = ImPattern() #params = api.params_init() #params.randomize() #print params.as_dict() #req = params.execute() #print req - - -#api = ImBreak() +#api = ImGrid() #params = api.params_init() #params.randomize() #print params.as_dict() #req = params.execute() #print req -#api = ImGradient() + + +#api = ImBreak() #params = api.params_init() #params.randomize() #print params.as_dict() #req = params.execute() #print req + |
