diff --git a/scribblings/manual.scrbl b/scribblings/manual.scrbl index e9bcd5e..1c2286c 100644 --- a/scribblings/manual.scrbl +++ b/scribblings/manual.scrbl @@ -626,6 +626,10 @@ Here are a collection of web-world demos: @itemize[ @item{@link["http://hashcollision.org/whalesong/examples/attr-animation/attr-animation.html"]{attr-animation.html} [@link["http://hashcollision.org/whalesong/examples/attr-animation/attr-animation.rkt"]{src}] Uses @racket[update-view-attr] and @racket[on-tick] to perform a simple color animation.} + +@item{@link["http://hashcollision.org/whalesong/examples/boid/boid.html"]{boid.html} [@link["http://hashcollision.org/whalesong/examples/boid/boid.rkt"]{src}] Uses @racket[update-view-css] and @racket[on-tick] to perform an animation of a flock of @link["http://en.wikipedia.org/wiki/Boids"]{boids}.} + + @item{@link["http://hashcollision.org/whalesong/examples/dwarves/dwarves.html"]{dwarves.html} [@link["http://hashcollision.org/whalesong/examples/dwarves/dwarves.rkt"]{src}] Uses @racket[view-show] and @racket[view-hide] to manipulate a view. Click on a dwarf to make them hide. @@ -871,6 +875,14 @@ Get the attribute @racket[name] at the focus. Update the attribute @racket[n] with the value @racket[v] at the focus. } +@defproc[(view-css [v view] [name String]) view]{ +Get the css value @racket[name] at the focus. +} + +@defproc[(update-view-css [v view] [name String] [value String]) view]{ +Update the css value @racket[n] with the value @racket[v] at the focus. +} + @defproc[(view-id [v view]) world]{ Get the unique identifier of the node at the focus. }