summaryrefslogtreecommitdiff
path: root/ricky/pbgradient/params.py
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 15:51:26 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 15:51:26 -0800
commit6c3c36e2e3670a3fc3b84f051558eb77ba6ff373 (patch)
treefb9640ad01068aed1831b73cc5855429733c8311 /ricky/pbgradient/params.py
parentd3bd099bc89bb06e0d2e569e6cbab9a932ef2237 (diff)
removed api class, simplified source tree
Diffstat (limited to 'ricky/pbgradient/params.py')
-rw-r--r--ricky/pbgradient/params.py167
1 files changed, 0 insertions, 167 deletions
diff --git a/ricky/pbgradient/params.py b/ricky/pbgradient/params.py
deleted file mode 100644
index 54686ef..0000000
--- a/ricky/pbgradient/params.py
+++ /dev/null
@@ -1,167 +0,0 @@
-from ricky.params import Params as _Params
-from ricky.param.username import Username
-from ricky.param.enum import Enum
-from ricky.param.constrainednumber import ConstrainedNumber
-from ricky.param.bool import Bool
-from ricky.param.color import Color
-from ricky.config import PBGRADIENT_URL
-
-_HALFTONE_OPTIONS = [
- "",
- "checkeredfade",
- "etchedtransition",
- "bendaydots",
- "smallerdots1",
- "smallerdots2",
- "flatstripes",
-]
-
-_BEVEL_OPTIONS = [
- "",
- "flatout",
- "flatinner",
- "evenlyframed",
- "biginner",
- "bigouter",
- "dramaticflatout",
- "dramaticflatinner",
-]
-
-_FILETYPE_OPTIONS = [
- "png",
- "jpg",
- "gif",
-]
-
-_GRADIENTTYPE_OPTIONS = [
- "canvas",
- "gradient",
- "radial",
- "colorspace",
- "plasmawash",
- "gradientwash",
- "mirrored",
- "noise",
-]
-
-
-class Params(_Params):
- def __init__(self):
- super(Params, self).__init__(
- Username(name="username", required=False),
- ConstrainedNumber(
- name="width",
- required=True,
- enforce_int=True,
- min=10,
- max=800
- ),
- ConstrainedNumber(
- name="height",
- required=True,
- enforce_int=True,
- min=10,
- max=800
- ),
- Color(name="color1", required=True),
- Color(name="color2", required=True),
- Enum(
- name="filetype",
- required=False,
- options=_FILETYPE_OPTIONS
- ),
- Enum(
- name="gradienttype",
- required=True,
- options=_GRADIENTTYPE_OPTIONS
- ),
- Enum(
- name="halftone",
- required=False,
- options=_HALFTONE_OPTIONS
- ),
- Enum(
- name="bevel",
- required=False,
- options=_BEVEL_OPTIONS
- ),
- ConstrainedNumber(
- name="stripenumber",
- required=False,
- enforce_int=True,
- min=0,
- max=400
- ),
- ConstrainedNumber(
- name="stripeintensity",
- required=False,
- enforce_int=True,
- min=0,
- max=5000
- ),
- ConstrainedNumber(
- name="blurriness",
- required=False,
- enforce_int=True,
- min=0,
- max=200
- ),
- ConstrainedNumber(
- name="contrast",
- required=False,
- enforce_int=True,
- min=0,
- max=200
- ),
- ConstrainedNumber(
- name="brightness",
- required=False,
- enforce_int=True,
- min=0,
- max=200
- ),
- ConstrainedNumber(
- name="saturation",
- required=False,
- enforce_int=True,
- min=0,
- max=200
- ),
- ConstrainedNumber(
- name="hue",
- required=False,
- enforce_int=True,
- min=0,
- max=200
- ),
- ConstrainedNumber(
- name="percentbeveled",
- required=False,
- enforce_int=True,
- min=0,
- max=100
- ),
- ConstrainedNumber(
- name="rotate",
- required=False,
- enforce_int=True,
- min=0,
- max=360
- ),
- ConstrainedNumber(
- name="tilt",
- required=False,
- enforce_int=True,
- min=0,
- max=360
- ),
- Bool(
- name="flop",
- required=False,
- ),
- Bool(
- name="flip",
- required=False
- )
- )
- self._url = PBGRADIENT_URL