june / Propagators (Draft)
0 喜歡
0 分支
1 檔案
最後活躍
A quick demonstration of building propagators from scratch.
1 | ||:@include: lib/rpn.nv |
2 | |
3 | ||:: a = b + c |
4 | ||:: d = a + # 1 |
5 | ||:: b = 1 |
6 | ||:: c = 2 |
7 | |
8 | |:: $x = $y $op $z| |
9 | :: create some cells :names: ($x $y $z) |
10 | :: create an operator |
june / Variables and math expressions.
0 喜歡
0 分支
1 檔案
最後活躍
An example of adding basic variable bindings and binary math expressions to Nova.
1 | ||:: foo = bar |
2 | :: bar = baz |
3 | :: baz = 2 |
4 | :: quux = foo |
5 | :: baz = bar + foo |
6 | :: baz = baz + quux |
7 | :: baz = baz + baz |
8 | |
9 | |
10 | ||:@include: lib/rpn.nv |
june / Trans Pride Flag
0 喜歡
0 分支
1 檔案
最後活躍
A small Nova program to draw the trans pride flag in the playground.
1 | || :@include: ( |
2 | lib/rpn.nv |
3 | lib/nv/meta.nv |
4 | lib/platforms/browser_game.nv |
5 | lib/platforms/browser_dom.nv |
6 | ) |
7 | |
8 | ||:: create a 400 by 400 canvas |
9 | :: draw the trans pride flag |
june / A small graphical example of Nova.
0 喜歡
0 分支
1 檔案
最後活躍
A small Nova program to draw the trans pride flag in the playground.
1 | || |
2 | :: create a 400 by 400 canvas |
3 | :: draw the trans pride flag |
4 | |
5 | |:: draw the trans pride flag| |
6 | :: clear the canvas to black |
7 | :: draw a 360 by 360 lightblue rectangle at 20 20 |
8 | :: draw a 360 by 250 pink rectangle at 20 80 |
9 | :: draw a 360 by 100 white rectangle at 20 150 |
june / A MIDI Sequencer
0 喜歡
0 分支
1 檔案
最後活躍
This is a MIDI sequencer supporting variable-length channels.
1 | |:@math: $x :@math: $op $y| :@math: $op $x $y |
2 | |
3 | |:note: C | :note number: 0 |
4 | |:note: C#| :note number: 1 |
5 | |:note: Db| :note number: 1 |
6 | |:note: D | :note number: 2 |
7 | |:note: D#| :note number: 3 |
8 | |:note: Eb| :note number: 3 |
9 | |:note: E | :note number: 4 |
10 | |:note: F | :note number: 5 |
上一頁
下一頁