PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.28.0
Code Block Pro – Beautiful Syntax Highlighting v1.28.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / samples / scheme.sample

scheme.sample in Code Block Pro – Beautiful Syntax Highlighting 1.28.0, at build/shiki/samples/scheme.sample

27 lines 713 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (define WINDOW-WIDTH 150)
2 (define WINDOW-HEIGHT 180)
3
4 ; A world is a number.
5 ; Its display is a blue disk of that size.
6 ; show-world : world -> image
7 (define (show-world diameter)
8 (circle diameter "solid" "blue"))
9 "Examples of show-world:"
10 (show-world 1) "should be a blue dot"
11 (show-world 20) "should be" (circle 20 "solid" "blue")
12
13 ; The next world is one larger.
14 ; next-world : world -> world
15 (define (next-world diameter)
16 (+ 1 diameter))
17 "Examples of next-world:"
18 (next-world 7) "should be" 8
19
20 "Now let's start the animation!"
21
22 (big-bang WINDOW-WIDTH WINDOW-HEIGHT 1 1)
23 (on-update-event show-world)
24 (on-tick-event next-world)
25
26 ; From https://home.adelphi.edu/sbloch/class/archive/160/spring2005/examples/
27