MCPcopy Create free account
hub / github.com/aspizu/goboscript / modulate

Function modulate

examples/font_engine/convert_font.py:23–40  ·  view source on GitHub ↗
(d: list[str])

Source from the content-addressed store, hash-verified

21
22
23def modulate(d: list[str]) -> list[str]:
24 cmd = None
25 i = 0
26 while i < len(d):
27 if d[i].isalpha():
28 cmd = d[i]
29 i += 1
30 if cmd.upper() in "ML":
31 if cmd.isupper():
32 d[i] = int(float(d[i])) % (width * 2)
33 i += 2
34 elif cmd.upper() == "H":
35 if cmd.isupper():
36 d[i] = int(float(d[i])) % (width * 2)
37 i += 1
38 elif cmd.upper() == "V":
39 i += 1
40 return d
41
42
43characters = {}

Callers 1

convert_font.pyFile · 0.85

Calls 2

intFunction · 0.85
floatFunction · 0.85

Tested by

no test coverage detected