blob: 70b4813bce93070349b10aa5f11405ea4646af85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# snippet list generation
import os
# list of snippet files
snip_list = [x[:-3] for x in os.listdir (os.path.dirname (__file__))
if not x.startswith('_') and x.endswith('.py')]
snip_list.sort()
# function used by some or all snippets
def snippet_normalize (ctx, width, height):
ctx.scale (width, height)
ctx.set_line_width (0.04)
|