Commit 5fb0ca9 1 parent 4459fe1 commit 5fb0ca9 Copy full SHA for 5fb0ca9
File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ $hyoo_life $mol_page
2
2
title @ \the Life Game
3
3
plugins /
4
4
<= Theme $mol_theme_auto
5
+ speed? 0
5
6
head /
6
7
<= Title
7
8
<= Step $mol_button_minor
8
9
sub / <= Step_icon $mol_icon_step_forward
9
10
click <= step
10
11
<= Time $mol_switch
11
- value?val <=> speed?val 0
12
+ value? <=> speed_str? \
12
13
options *
13
14
5 <= Normal $mol_icon_play
14
15
1000 <= Fast $mol_icon_fast_forward
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ namespace $.$$ {
19
19
snapshot ( ) {
20
20
return this . $ . $mol_state_arg . value ( 'snapshot' ) ?? super . snapshot ( )
21
21
}
22
+
23
+ speed_str ( next ?: string ) {
24
+ return String ( this . speed ( next === undefined ? next : Number ( next ) ) )
25
+ }
22
26
23
27
step ( ) {
24
28
this . speed ( 0 )
Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ $hyoo_life_map $mol_plot_pane
3
3
gap_vert 0
4
4
-
5
5
zoom?val 16
6
- scale $mol_vector_2d /
6
+ scale $mol_vector_2d<number> /
7
7
<= zoom
8
8
<= zoom
9
9
-
10
+ step null
10
11
style *
11
12
^
12
13
backgroundSize <= grid_size \
You can’t perform that action at this time.
0 commit comments