summaryrefslogtreecommitdiff
path: root/ricky/imgradient/options.py
blob: dd14cbaa4cdf5040568e6d6d86d76cf2ff5709e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
from ricky.param.options import Options

width_options = Options.from_dict(
    {"value": 40, "weight": 60},
    {"value": 20, "weight": 60},
    {"value": 60, "weight": 60},
    {"value": 80, "weight": 60},
)
height_options = Options.from_dict(
    {"value": 400, "weight": 900},
)
color1_options = Options.from_dict(
    {"value": "", "weight": 0},
#    {"value": "black", "weight": 1},
#    {"value": "white", "weight": 2},
)
color2_options = Options.from_dict(
    {"value": "", "weight": 0},
#    {"value": "black", "weight": 2},
#    {"value": "white", "weight": 1},
)
stripes_options = Options.from_dict(
    {"value": "true", "weight": 3},
    {"value": "false", "weight": 1},
)
stripenumber_options = Options.from_dict(
    {"value": 3, "weight": 10},
    {"value": 10, "weight": 10},
    {"value": 20, "weight": 10},
    {"value": 100, "weight": 10},
    {"value": 40, "weight": 10},
#    {"value": 1, "weight": 50},
#    {"value": 2, "weight": 50},
#    {"value": 2, "weight": 50},

)
stripeintensity_options = Options.from_dict(
  {"value": 1000, "weight": 10},
  {"value": 4, "weight": 10},
) 
#  contrast_options = \
brightness_options = \
  saturation_options = \
  hue_options = \
  Options.from_dict(
    {"value": "", "weight": 0},
#    {"value": "", "weight": 300},
)
halftone_options = Options.from_dict(
    {"value": "", "weight": 60},
    {"value": "checkeredfade", "weight": 10},
    {"value": "etchedtransition", "weight": 10},
    {"value": "bendaydots", "weight": 10},
    {"value": "smallerdots1", "weight": 10},
    {"value": "smallerdots2", "weight": 10},
    {"value": "flatstripes", "weight": 10},
)
bevel_options = Options.from_dict(
    {"value": "", "weight": 4},
    {"value": "flatout", "weight": 1},
    {"value": "flatinner", "weight": 0},
    {"value": "evenlyframed", "weight": 1},
#    {"value": "biginner", "weight": 1},
    {"value": "bigouter", "weight": 1},
    {"value": "dramaticflatout", "weight": 1},
#    {"value": "dramaticflatinner", "weight": 1},
)

blurriness_options = \
    percentbeveled_options = Options.from_dict(
    {"value": 30, "weight": 20},
    {"value": 10, "weight": 2},
    {"value": "", "weight": 1},
)
rotate_options = \
    tilt_options = Options.from_dict(
    {"value": 0, "weight": 200},
    {"value": 90,  "weight": 2},
    {"value": 180, "weight": 2},
    {"value": 270, "weight": 2},
)
flop_options = flip_options = Options.from_dict(
    {"value": "", "weight": 1},
    {"value": "true",  "weight": 1},
)

filetype_options = Options.from_dict(
    {"value": "png", "weight": 10},
    {"value": "jpg", "weight": 2},
    {"value": "gif", "weight": 2},
)
gradienttype_options = Options.from_dict(
    {"value": "canvas", "weight": 1},
    {"value": "gradient", "weight": 5},
    {"value": "radial", "weight": 1},
    {"value": "colorspace", "weight": 1},
    {"value": "plasmawash", "weight": 2},
    {"value": "gradientwash", "weight": 1},
    {"value": "mirrored", "weight": 0},
    {"value": "noise", "weight": 1},
)