11 Conditional Combinations
(require pict/conditional) | package: pict-lib |
These pict control flow operators decide which pict of several to use. All branches are evaluated; the resulting pict is a combination of the pict chosen by normal conditional flow with ghost applied to all the other picts. The result is a picture large enough to accommodate each alternative, but showing only the chosen one. This is useful for staged slides, as the pict chosen may change with each slide but its size and position will not.
syntax
(pict-if maybe-combine test-expr then-expr else-expr)
maybe-combine =
| #:combine combine-expr
Example: | |||||||||
|
Added in version 1.4 of package pict-lib.
syntax
(pict-cond maybe-combine [test-expr pict-expr] ...)
maybe-combine =
| #:combine combine-expr
Example: | |||||||||||
|
Added in version 1.4 of package pict-lib.
syntax
(pict-case test-expr maybe-combine [literals pict-expr] ...)
maybe-combine =
| #:combine combine-expr
Example: | |||||||||||
|
Added in version 1.4 of package pict-lib.
Added in version 1.4 of package pict-lib.