| 1 |
sleepyTime = 0.02 |
| 2 |
|
| 3 |
# Initialize |
| 4 |
demo Erase all |
| 5 |
|
| 6 |
demo Font size: 24 ; needed *before* setting an *inner* viewport |
| 7 |
demo Select inner viewport... 5 95 5 95 |
| 8 |
demo Axes... 0 100 0 100 |
| 9 |
|
| 10 |
# Recording text |
| 11 |
demo Colour: "Black" |
| 12 |
demo Text: 50, "Centre", 50, "Bottom", "Recording started: You should see a red disk during recording" |
| 13 |
sleep (sleepyTime) |
| 14 |
demoShow() |
| 15 |
|
| 16 |
# Recording light |
| 17 |
demo Paint circle: "Red", 5, 95, 2 |
| 18 |
sleep (sleepyTime) |
| 19 |
demoShow() |
| 20 |
|
| 21 |
.sound = Record Sound (fixed time): "Microphone", 0.99, 0.5, "44100", 5 |
| 22 |
Remove |
| 23 |
|
| 24 |
# Clear text |
| 25 |
demo Paint rectangle: "White", 0, 100, 45, 60 |
| 26 |
|
| 27 |
# Finish light |
| 28 |
demo Paint circle: "Blue", 10, 95, 2 |
| 29 |
|
| 30 |
# Finish text |
| 31 |
demo Font size: 24 |
| 32 |
demo Colour: "Black" |
| 33 |
demo Text: 50, "Centre", 50, "Bottom", "Recording stopped: Now you should see a red and a blue disk" |
| 34 |
demo Text: 50, "Centre", 45, "Bottom", "(Click anywhere in the window or hit any key to erase and exit)" |
| 35 |
|
| 36 |
# Wait and exit |
| 37 |
demoWaitForInput() |
| 38 |
demo Erase all |
| 39 |
;demoShow() |
| 40 |
exit |