ludus-scripts/demo_1.ld

20 lines
317 B
Plaintext

& Lesson 6: A first demo
& Source: _Visual Modeling with Logo_, 14.
fn box! (size) -> repeat 4 { fd! (size); rt! (0.25) }
fn demo! () -> repeat 4 {
box! (100)
box! (98)
box! (96)
box! (75)
box! (40)
box! (35)
box! (30)
rt! (0.25)
}
& How can you make this box more interesting?
& Consider `pc!` and `pw!`