Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.
1{
2 {type='rows', width=800, default={font={size=21}, line_height=35},
3 {type='text', font={size=28}, line_height=50,
4 {'LOVE@{LÖVE} > effects@{effects} > graphics@{graphics} > transforms',
5 attrs={
6 LOVE={target='--love'},
7 effects={target='--love-output'},
8 graphics={target='--love-graphics'},
9 }},
10 },
11 {type='filler', height=15},
12 {type='text', 'love.graphics.origin()', font={size=24}},
13 {type='text', ' reset the current transform that affects all future shapes'},
14 {type='filler', height=10},
15 {type='text', 'love.graphics.push()', font={size=24}},
16 {type='text', ' save the current transform to a stack'},
17 {type='filler', height=10},
18 {type='text', 'love.graphics.pop()', font={size=24}},
19 {type='text', ' restore the previous transform from the stack'},
20 {type='filler', height=10},
21 {type='text', 'love.graphics.translate(dx, dy)', font={size=24}},
22 {type='text', ' modifies the current transform to move the origin by dx,dy'},
23 {type='filler', height=10},
24 {type='text', 'love.graphics.rotate(angle)', font={size=24}},
25 {type='text', ' modifies the current transform to rotate the axes by angle'},
26 {type='filler', height=10},
27 {type='text', 'love.graphics.scale(sx, sy)', font={size=24}},
28 {type='text', ' modifies the current transform to multiply x, y coordinates in shapes by sx, sy respectively'},
29 }
30}