Debian Codegraph @

tests_literate/expected/opaque_tuple.md

raw
1 Based on #1750.
2
3 ```futhark
4 type vec2 = (i64, i64)
5
6 def moving_point (x: i64, y: i64) : ([][]u32, vec2) =
7 let canvas = replicate 128 (replicate 128 0) with [y, x] = 255
8 in (canvas, (x + 1, y+1))
9 ```
10
11 ```
12 > :video (moving_point, (10i64, 10i64), 50i64);
13 fps: 1
14 format: gif
15 ```
16
17 ![](opaque_tuple-img/da140d8304219232f384b6a2d5ea4be9-video.gif)