diff options
Diffstat (limited to 'web/src/components/grid/excursion.ts')
| -rw-r--r-- | web/src/components/grid/excursion.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/src/components/grid/excursion.ts b/web/src/components/grid/excursion.ts new file mode 100644 index 0000000..7752df1 --- /dev/null +++ b/web/src/components/grid/excursion.ts @@ -0,0 +1,8 @@ +export default function excursion( + ctx: CanvasRenderingContext2D, + f: () => void, +) { + ctx.save(); + f(); + ctx.restore(); +} |
