aboutsummaryrefslogtreecommitdiffstats
path: root/examples/counter.aup
blob: d9662926318b2d4ef576059f6833cac768d729df (plain)
1
2
3
4
5
6
7
8
9
# Space increments a count; views expose what a surface would show.
state count = 0
input tap = key Space
view label = count
view tile_width = 40 + min(count, 20) * 8

on tap.down {
  count = count + 1
}