omnipython-apps 0.1.4.dev8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. apps/__init__.py +5 -0
  2. apps/about/__init__.py +257 -0
  3. apps/about/app.json +1 -0
  4. apps/about/credits.py +12 -0
  5. apps/about/facts.py +398 -0
  6. apps/about/fonts/OFL.txt +93 -0
  7. apps/about/fonts/latin1_14.bin +0 -0
  8. apps/about/fonts/latin1_16.bin +0 -0
  9. apps/about/fonts/latin1_24.bin +0 -0
  10. apps/about/fonts/latin1_32.bin +0 -0
  11. apps/about/fonts/latin1_40.bin +0 -0
  12. apps/backline/__init__.py +58 -0
  13. apps/backline/app.json +1 -0
  14. apps/backline/app.py +475 -0
  15. apps/backline/art.py +717 -0
  16. apps/backline/ask.py +781 -0
  17. apps/backline/box.py +502 -0
  18. apps/backline/cast.py +137 -0
  19. apps/backline/desk/__init__.py +329 -0
  20. apps/backline/desk/editor.py +331 -0
  21. apps/backline/desk/grid.py +154 -0
  22. apps/backline/desk/look.py +169 -0
  23. apps/backline/desk/pedals.py +102 -0
  24. apps/backline/desk/perform.py +157 -0
  25. apps/backline/desk/prompt.py +210 -0
  26. apps/backline/desk/strip.py +159 -0
  27. apps/backline/desk_main.py +226 -0
  28. apps/backline/engine.py +622 -0
  29. apps/backline/floor.py +509 -0
  30. apps/backline/footswitch.py +119 -0
  31. apps/backline/glyphs.py +82 -0
  32. apps/backline/kits.py +428 -0
  33. apps/backline/midipedal.py +362 -0
  34. apps/backline/page_data.py +413 -0
  35. apps/backline/parts.py +145 -0
  36. apps/backline/pedal.py +107 -0
  37. apps/backline/remote.py +134 -0
  38. apps/backline/songs/ballad_68.json +1 -0
  39. apps/backline/songs/bossa.json +1 -0
  40. apps/backline/songs/country_train.json +1 -0
  41. apps/backline/songs/funk.json +1 -0
  42. apps/backline/songs/metal.json +1 -0
  43. apps/backline/songs/pop.json +1 -0
  44. apps/backline/songs/rock.json +1 -0
  45. apps/backline/songs/shuffle.json +1 -0
  46. apps/battery/__init__.py +101 -0
  47. apps/battery/app.json +1 -0
  48. apps/bit_world/act_deck.py +683 -0
  49. apps/bit_world/act_game.py +762 -0
  50. apps/bit_world/act_pet.py +1032 -0
  51. apps/bit_world/app.json +1 -0
  52. apps/bit_world/bit_output.py +45 -0
  53. apps/bit_world/bit_palette.py +503 -0
  54. apps/bit_world/bit_sound.py +431 -0
  55. apps/bit_world/bit_sprites.py +632 -0
  56. apps/bit_world/bit_world.py +534 -0
  57. apps/btreceiver/__init__.py +690 -0
  58. apps/btreceiver/app.json +1 -0
  59. apps/btreceiver/chime.py +155 -0
  60. apps/btreceiver/demo.py +529 -0
  61. apps/btreceiver/screen.py +633 -0
  62. apps/camera/__init__.py +316 -0
  63. apps/camera/app.json +1 -0
  64. apps/card/__init__.py +113 -0
  65. apps/card/app.json +1 -0
  66. apps/cast/__init__.py +631 -0
  67. apps/cast/app.json +1 -0
  68. apps/cast/receivers.py +193 -0
  69. apps/chess/__init__.py +18 -0
  70. apps/chess/app.json +1 -0
  71. apps/chess/app.py +922 -0
  72. apps/chess/art.py +323 -0
  73. apps/chess/ble.py +411 -0
  74. apps/chess/engine.py +925 -0
  75. apps/chess/game.py +327 -0
  76. apps/chess/net.py +261 -0
  77. apps/clock/__init__.py +38 -0
  78. apps/clock/app.json +1 -0
  79. apps/detect/__init__.py +214 -0
  80. apps/detect/app.json +1 -0
  81. apps/fmsynth/__init__.py +41 -0
  82. apps/fmsynth/algorithms.py +61 -0
  83. apps/fmsynth/app.json +1 -0
  84. apps/fmsynth/app.py +355 -0
  85. apps/fmsynth/editor.py +206 -0
  86. apps/fmsynth/engine.py +257 -0
  87. apps/fmsynth/meters.py +262 -0
  88. apps/fmsynth/midi.py +375 -0
  89. apps/fmsynth/panel_view.py +1071 -0
  90. apps/fmsynth/patches/fmsynth-01.syx +0 -0
  91. apps/fmsynth/settings.py +138 -0
  92. apps/fmsynth/voice.py +398 -0
  93. apps/gamepad/__init__.py +685 -0
  94. apps/gamepad/app.json +1 -0
  95. apps/gamepad/pad.py +94 -0
  96. apps/gamepad/watch.py +352 -0
  97. apps/hidden/__init__.py +72 -0
  98. apps/hidden/app.json +1 -0
  99. apps/home/__init__.py +483 -0
  100. apps/home/app.json +1 -0
  101. apps/home/main.py +36 -0
  102. apps/homeassistant/__init__.py +213 -0
  103. apps/homeassistant/api.py +104 -0
  104. apps/homeassistant/app.json +1 -0
  105. apps/huey/__init__.py +287 -0
  106. apps/huey/acting.py +184 -0
  107. apps/huey/actor.py +194 -0
  108. apps/huey/app.json +1 -0
  109. apps/huey/client.py +125 -0
  110. apps/huey/servers.py +121 -0
  111. apps/huey/settings.example.json +8 -0
  112. apps/huey/settings.py +97 -0
  113. apps/huey/turn.py +504 -0
  114. apps/huey/voice.py +217 -0
  115. apps/info/__init__.py +810 -0
  116. apps/info/app.json +1 -0
  117. apps/lora/__init__.py +62 -0
  118. apps/lora/app.json +1 -0
  119. apps/manifest.py +71 -0
  120. apps/medialink_baby_monitor/__init__.py +222 -0
  121. apps/medialink_baby_monitor/app.json +1 -0
  122. apps/medialink_doorbell/__init__.py +251 -0
  123. apps/medialink_doorbell/app.json +1 -0
  124. apps/medialink_hands_free/__init__.py +217 -0
  125. apps/medialink_hands_free/app.json +1 -0
  126. apps/medialink_surveillance_camera/__init__.py +258 -0
  127. apps/medialink_surveillance_camera/app.json +1 -0
  128. apps/medialink_video_doorbell/__init__.py +289 -0
  129. apps/medialink_video_doorbell/app.json +1 -0
  130. apps/medialink_videophone/__init__.py +273 -0
  131. apps/medialink_videophone/app.json +1 -0
  132. apps/medialink_walkie_talkie/__init__.py +228 -0
  133. apps/medialink_walkie_talkie/app.json +1 -0
  134. apps/midicontroller/__init__.py +774 -0
  135. apps/midicontroller/app.json +1 -0
  136. apps/midicontroller/links.py +421 -0
  137. apps/midicontroller/surface.py +343 -0
  138. apps/midiengine/__init__.py +977 -0
  139. apps/midiengine/app.json +1 -0
  140. apps/midiengine/banks.py +85 -0
  141. apps/midiengine/midiin.py +165 -0
  142. apps/midiengine/player.py +392 -0
  143. apps/midiengine/umidiparser.py +1413 -0
  144. apps/mp3/__init__.py +240 -0
  145. apps/mp3/app.json +1 -0
  146. apps/perch/__init__.py +119 -0
  147. apps/perch/app.json +1 -0
  148. apps/perch/huey.py +481 -0
  149. apps/perch/huey_props.py +386 -0
  150. apps/perch/huey_shift.py +42 -0
  151. apps/perch/huey_views.py +296 -0
  152. apps/perch/scene_bench.py +680 -0
  153. apps/perch/scene_coast.py +479 -0
  154. apps/perch/scene_desk.py +492 -0
  155. apps/perch/stage.py +1274 -0
  156. apps/perch/vec.py +366 -0
  157. apps/repl/__init__.py +325 -0
  158. apps/repl/app.json +1 -0
  159. apps/roku/__init__.py +156 -0
  160. apps/roku/app.json +1 -0
  161. apps/rokucam/__init__.py +362 -0
  162. apps/rokucam/app.json +1 -0
  163. apps/security/__init__.py +261 -0
  164. apps/security/app.json +1 -0
  165. apps/settings/__init__.py +221 -0
  166. apps/settings/app.json +1 -0
  167. apps/shell/__init__.py +33 -0
  168. apps/shell/app.json +1 -0
  169. apps/spotify/__init__.py +669 -0
  170. apps/spotify/app.json +1 -0
  171. apps/spotify/screen.py +82 -0
  172. apps/steps/__init__.py +58 -0
  173. apps/steps/app.json +1 -0
  174. apps/stompbox/__init__.py +31 -0
  175. apps/stompbox/app.json +1 -0
  176. apps/stompbox/app.py +668 -0
  177. apps/stompbox/boards.json +20 -0
  178. apps/stompbox/effects.py +241 -0
  179. apps/stompbox/engine.py +340 -0
  180. apps/stompbox/footswitch.py +331 -0
  181. apps/stompbox/inputs.py +449 -0
  182. apps/stompbox/meter.py +72 -0
  183. apps/stompbox/outputs.py +135 -0
  184. apps/stompbox/pedals.txt +45 -0
  185. apps/stompbox/presets.py +106 -0
  186. apps/stompbox/styles.py +135 -0
  187. apps/stompbox/ui.py +817 -0
  188. apps/stompbox/wavfile.py +73 -0
  189. apps/synthstation/__init__.py +20 -0
  190. apps/synthstation/app.json +1 -0
  191. apps/synthstation/audio.py +397 -0
  192. apps/synthstation/catalog.py +50 -0
  193. apps/synthstation/meters.py +136 -0
  194. apps/synthstation/midi.py +380 -0
  195. apps/synthstation/pads.py +177 -0
  196. apps/synthstation/parts.py +128 -0
  197. apps/synthstation/station.py +1069 -0
  198. apps/system/__init__.py +11 -0
  199. apps/system/app.json +1 -0
  200. apps/touchcal/__init__.py +324 -0
  201. apps/touchcal/app.json +1 -0
  202. apps/touchcal/fit.py +262 -0
  203. apps/wake/__init__.py +268 -0
  204. apps/wake/app.json +1 -0
  205. apps/wake/feed.py +155 -0
  206. apps/watch/__init__.py +355 -0
  207. apps/watch/app.json +1 -0
  208. apps/watch/faces.py +35 -0
  209. apps/watch/wheel.py +157 -0
  210. apps/weather/__init__.py +278 -0
  211. apps/weather/app.json +1 -0
  212. apps/weather/icons.py +172 -0
  213. apps/weather/sizing.py +71 -0
  214. apps/weather/zippad.py +172 -0
  215. omnipython_apps-0.1.4.dev8.dist-info/METADATA +33 -0
  216. omnipython_apps-0.1.4.dev8.dist-info/RECORD +218 -0
  217. omnipython_apps-0.1.4.dev8.dist-info/WHEEL +5 -0
  218. omnipython_apps-0.1.4.dev8.dist-info/top_level.txt +1 -0
@@ -0,0 +1,106 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ """Boards: a whole chain saved under a name, and the starter boards.
6
+
7
+ A board is plain JSON, the same on a computer, a board and in the browser::
8
+
9
+ {"name": "Crunch",
10
+ "pedals": [{"name": "Overdrive", "on": true, "patch": 0,
11
+ "macros": [64, 64, 100, 127, 64, 127, 64]}]}
12
+
13
+ Saved boards go in the app's data folder (`appkit.data.app_dir`), one file
14
+ each. The starter boards ship with the app in ``boards.json``.
15
+ """
16
+
17
+ import json
18
+ import os
19
+
20
+ from . import effects
21
+
22
+
23
+ # appkit is imported where a board is read or kept, not with the module: it
24
+ # brings the shell and LVGL, which the engine and its checks do without.
25
+ def _appdata():
26
+ from appkit import data
27
+
28
+ return data
29
+
30
+ FOLDER = "boards"
31
+
32
+
33
+ def folder():
34
+ """The folder saved boards live in, made on first use."""
35
+ appdata = _appdata()
36
+ path = appdata.join(appdata.app_dir("stompbox"), FOLDER)
37
+ appdata.makedirs(path)
38
+ return path
39
+
40
+
41
+ def _file_name(name):
42
+ keep = []
43
+ for ch in name:
44
+ keep.append(ch if (ch.isalpha() or ch.isdigit() or ch in " -_") else "_")
45
+ return "".join(keep).strip() or "board"
46
+
47
+
48
+ def starters():
49
+ """The boards that ship with the app, as dicts, in their order."""
50
+ try:
51
+ from appkit import assets
52
+
53
+ return json.loads(assets.read(effects._app_file("boards.json")))
54
+ except (OSError, ValueError):
55
+ return []
56
+
57
+
58
+ def saved():
59
+ """The boards saved here, by name."""
60
+ try:
61
+ names = os.listdir(folder())
62
+ except OSError:
63
+ return []
64
+ found = []
65
+ for n in names:
66
+ if n.endswith(".json"):
67
+ board = read(_appdata().join(folder(), n))
68
+ if board is not None:
69
+ found.append(board)
70
+ found.sort(key=lambda b: b["name"].lower())
71
+ return found
72
+
73
+
74
+ def read(path):
75
+ try:
76
+ with open(path) as f:
77
+ board = json.load(f)
78
+ except (OSError, ValueError):
79
+ return None
80
+ if not isinstance(board, dict) or "pedals" not in board:
81
+ return None
82
+ board.setdefault("name", path.rsplit("/", 1)[-1][:-5])
83
+ return board
84
+
85
+
86
+ def save(name, pedals):
87
+ """Save *pedals* (`effects.Pedal` each) as board *name*, over any board
88
+ of that name. Returns the path."""
89
+ board = {"name": name, "pedals": [p.state() for p in pedals]}
90
+ path = _appdata().join(folder(), _file_name(name) + ".json")
91
+ with open(path, "w") as f:
92
+ json.dump(board, f)
93
+ return path
94
+
95
+
96
+ def pedals(board):
97
+ """The pedals a board holds, and the names it held that this build
98
+ doesn't carry (those are left out)."""
99
+ carried = set(effects.names())
100
+ got, missing = [], []
101
+ for d in board.get("pedals", ()):
102
+ if d.get("name") in carried:
103
+ got.append(effects.Pedal.from_state(d))
104
+ else:
105
+ missing.append(str(d.get("name")))
106
+ return got, missing
@@ -0,0 +1,135 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ """How each pedal looks on the board: its enclosure, lettering and knobs.
6
+
7
+ Each style is plain data the screen draws from:
8
+
9
+ body the enclosure's colour
10
+ trim a second colour: a faceplate band, a grille, a slider bank
11
+ text the lettering
12
+ knob the knobs' cap colour, and ``pointer`` the line on them
13
+ led the colour the light shows when the pedal is on
14
+ shape "pedal" (a compact box), "wide" (a bigger box), "round" (a
15
+ rounded face), "panel" (a flat front panel with a trim band),
16
+ "rack" (a rack unit), "sliders" (a box with a slider bank)
17
+ weight "bold" for heavy lettering
18
+
19
+ An effect with no entry of its own takes its category's.
20
+ """
21
+
22
+ STYLES = {
23
+ # Drive and fuzz
24
+ "Overdrive": {"body": 0x3E8E4A, "trim": 0x2F6E39, "text": 0xF3EBD2,
25
+ "knob": 0x161616, "pointer": 0xF3EBD2, "led": 0xFF3030,
26
+ "shape": "pedal", "weight": "bold"},
27
+ "Distortion": {"body": 0x161616, "trim": 0x2A2A2A, "text": 0xF4F4F4,
28
+ "knob": 0x0C0C0C, "pointer": 0xF4F4F4, "led": 0xFF2A2A,
29
+ "shape": "pedal", "weight": "bold"},
30
+ "Fuzz": {"body": 0xB0242E, "trim": 0xD9D9D9, "text": 0xF7F2E8,
31
+ "knob": 0xD9D9D9, "pointer": 0x202020, "led": 0xFF5040,
32
+ "shape": "round", "weight": "bold"},
33
+ "Saturation": {"body": 0xD3B98A, "trim": 0x5A3A22, "text": 0x3A2614,
34
+ "knob": 0x2A1A0E, "pointer": 0xF0E2C2, "led": 0xFFB040,
35
+ "shape": "panel", "weight": "bold"},
36
+ # Dynamics
37
+ "Compressor": {"body": 0x2A5DB0, "trim": 0x1E4686, "text": 0xFFFFFF,
38
+ "knob": 0x101010, "pointer": 0xFFFFFF, "led": 0xFF3030,
39
+ "shape": "pedal", "weight": "bold"},
40
+ "NoiseGate": {"body": 0x3A3D42, "trim": 0x25272B, "text": 0xD8DCE0,
41
+ "knob": 0x9AA0A6, "pointer": 0x16181A, "led": 0x40E070,
42
+ "shape": "rack", "weight": ""},
43
+ # Amp and cabinet
44
+ "CabinetSim": {"body": 0x1B1B1B, "trim": 0xB8A67C, "text": 0xE8E0C8,
45
+ "knob": 0x2A2A2A, "pointer": 0xE8E0C8, "led": 0xFFB040,
46
+ "shape": "panel", "weight": "bold"},
47
+ # EQ and filter
48
+ "GraphicEQ": {"body": 0x141414, "trim": 0x2C2C2C, "text": 0xF0F0F0,
49
+ "knob": 0xE6E6E6, "pointer": 0x141414, "led": 0xFF3030,
50
+ "shape": "sliders", "weight": "bold"},
51
+ "ParametricEQ": {"body": 0x8FA3B0, "trim": 0x6E8290, "text": 0x101820,
52
+ "knob": 0x121212, "pointer": 0xF0F0F0, "led": 0xFFD040,
53
+ "shape": "rack", "weight": ""},
54
+ "LadderFilter": {"body": 0x161616, "trim": 0x6B4426, "text": 0xEDE6D6,
55
+ "knob": 0x0C0C0C, "pointer": 0xEDE6D6, "led": 0xFF3030,
56
+ "shape": "panel", "weight": ""},
57
+ # Pitch
58
+ "Octaver": {"body": 0x2D4C8C, "trim": 0x1D3566, "text": 0xFFFFFF,
59
+ "knob": 0x101010, "pointer": 0xFFFFFF, "led": 0xFF3030,
60
+ "shape": "pedal", "weight": "bold"},
61
+ "PitchShifter": {"body": 0xB8263A, "trim": 0x8A1C2B, "text": 0xFFFFFF,
62
+ "knob": 0x101010, "pointer": 0xFFFFFF, "led": 0x40A0FF,
63
+ "shape": "wide", "weight": "bold"},
64
+ "Harmonizer": {"body": 0x5C1E2E, "trim": 0x3E1420, "text": 0xF5E6C8,
65
+ "knob": 0xD8D8D8, "pointer": 0x202020, "led": 0x40A0FF,
66
+ "shape": "wide", "weight": ""},
67
+ # Modulation
68
+ "Chorus": {"body": 0x8CC4E0, "trim": 0x6AA6C4, "text": 0x0E2030,
69
+ "knob": 0x101010, "pointer": 0xFFFFFF, "led": 0xFF3030,
70
+ "shape": "pedal", "weight": "bold"},
71
+ "Phaser": {"body": 0xF26B1D, "trim": 0xC9550F, "text": 0x161616,
72
+ "knob": 0x161616, "pointer": 0xFFFFFF, "led": 0xFF3030,
73
+ "shape": "pedal", "weight": "bold"},
74
+ "Flanger": {"body": 0x6B4C9A, "trim": 0x523878, "text": 0xFFFFFF,
75
+ "knob": 0x101010, "pointer": 0xFFFFFF, "led": 0xFF3030,
76
+ "shape": "pedal", "weight": "bold"},
77
+ "Tremolo": {"body": 0x2B2B2B, "trim": 0xC8CCD0, "text": 0xF2F2F2,
78
+ "knob": 0xF2F0E8, "pointer": 0x161616, "led": 0xE02020,
79
+ "shape": "panel", "weight": ""},
80
+ "Vibrato": {"body": 0x1F6F6A, "trim": 0x15524E, "text": 0xFFFFFF,
81
+ "knob": 0x101010, "pointer": 0xFFFFFF, "led": 0xFF3030,
82
+ "shape": "pedal", "weight": "bold"},
83
+ # Delay
84
+ "DigitalDelay": {"body": 0xF2F2F0, "trim": 0xD8D8D4, "text": 0x1E4FA0,
85
+ "knob": 0x161616, "pointer": 0xFFFFFF, "led": 0xFF3030,
86
+ "shape": "pedal", "weight": "bold"},
87
+ "AnalogDelay": {"body": 0xB8BCC0, "trim": 0x8C2A2A, "text": 0x1A1A1A,
88
+ "knob": 0x161616, "pointer": 0xFFFFFF, "led": 0xFF3030,
89
+ "shape": "wide", "weight": "bold"},
90
+ "TapeDelay": {"body": 0x2A2A2A, "trim": 0xC9CDD1, "text": 0xEDE6D6,
91
+ "knob": 0x111111, "pointer": 0xEDE6D6, "led": 0x40E070,
92
+ "shape": "panel", "weight": ""},
93
+ "SlapbackDelay": {"body": 0xD7C29A, "trim": 0x8E7550, "text": 0x2A1E10,
94
+ "knob": 0x2A1E10, "pointer": 0xF2E8D0, "led": 0xFFB040,
95
+ "shape": "panel", "weight": "bold"},
96
+ # Reverb
97
+ "Reverb": {"body": 0x1C2A44, "trim": 0xB8C0CC, "text": 0xDDE4EE,
98
+ "knob": 0xB8C0CC, "pointer": 0x1C2A44, "led": 0x40A0FF,
99
+ "shape": "pedal", "weight": ""},
100
+ "ShimmerHall": {"body": 0xDCD4F0, "trim": 0xB8ACDC, "text": 0x34285A,
101
+ "knob": 0xF8F8FF, "pointer": 0x34285A, "led": 0x8060FF,
102
+ "shape": "wide", "weight": ""},
103
+ "AirSpace": {"body": 0x7C5F40, "trim": 0xD8C8A8, "text": 0xF2E8D0,
104
+ "knob": 0x1A120A, "pointer": 0xF2E8D0, "led": 0x40E070,
105
+ "shape": "wide", "weight": ""},
106
+ }
107
+
108
+ #: By category, for an effect with no style of its own.
109
+ BY_CATEGORY = {
110
+ "Distortion": STYLES["Distortion"],
111
+ "Drive": STYLES["Saturation"],
112
+ "Dynamics": {"body": 0x4A4F57, "trim": 0x353940, "text": 0xEEF0F2,
113
+ "knob": 0x9AA0A6, "pointer": 0x16181A, "led": 0x40E070,
114
+ "shape": "rack", "weight": ""},
115
+ "EQ": {"body": 0x505A64, "trim": 0x3C444C, "text": 0xEEF0F2,
116
+ "knob": 0x101010, "pointer": 0xF0F0F0, "led": 0xFFD040,
117
+ "shape": "rack", "weight": ""},
118
+ "Filter": STYLES["LadderFilter"],
119
+ "Modulation": STYLES["Vibrato"],
120
+ "Pitch Shift": STYLES["PitchShifter"],
121
+ "Delay": STYLES["DigitalDelay"],
122
+ "Reverb": STYLES["Reverb"],
123
+ "Spatial": {"body": 0x2E3440, "trim": 0x4C566A, "text": 0xE5E9F0,
124
+ "knob": 0x101010, "pointer": 0xE5E9F0, "led": 0x88C0D0,
125
+ "shape": "pedal", "weight": ""},
126
+ }
127
+
128
+ NEUTRAL = {"body": 0x3A3F46, "trim": 0x2A2E33, "text": 0xE8E6E1,
129
+ "knob": 0x101010, "pointer": 0xE8E6E1, "led": 0xF2A33A,
130
+ "shape": "pedal", "weight": ""}
131
+
132
+
133
+ def style(name, category=""):
134
+ """The style for effect *name*, whose category is *category*."""
135
+ return STYLES.get(name) or BY_CATEGORY.get(category) or NEUTRAL