8.12.0.9
2 Pict Objects
annotation |
|
annotation |
An annotation representing a pict value or a pict value that is
specifically a static pict.
value |
|
annotation |
The nothing pict is a special static pict that acts as
if it is not supplied at all. The NothingPict annotation
is satisfied by only nothing.
property |
|
property |
|
property |
|
property |
Properties for a pict’s geometry.
property |
|
method |
Properties for a pict’s animation.
Converts an animated pict to a static pict. The 0-argument
variant is a shorthand for providing 0 and 0.
Returns a pict that is the same as pict, but with a
fresh identity and hiding the identity of any cmoponent inside
pict.
Returns a pict that is the same as pict, including the
same bounding box and time box, but whose drawing is empty
if do_ghost is true. If do_ghost is #false,
then pict itself is returned.
The do_ghost argument is intended to help avoid if wrappers, enabling pict.ghost(rhombus(test, ~var)) instead of if rhombus(test, ~var) | pict.ghost() | pict, where the former works even without having to bind an intermediate variable if pict is replaced with a more complex expression.
Returns a pict that is the same as pict, but with a
shifted bounding box to match subpict within
pict.
method | |||||
Returns a pict that is the same as pict, but where a
sustain operation is treated the same as padding via
Pict.time_pad.
Returns a pict that is like pict, but its drawing and
bounding box is scaled.
Returns a pict that is like pict, but its drawing is
rotated, and its bounding box is extended as needed to enclose the
rotated bounding box.
Returns a pict that is like pict, but its drawing is
sheared. The bounding box is inflated to contain the result. The
result pict’s ascent and descent are the same as pict’s.
Returns a pict that is like pict, but whose drawing is
changed by reducing the global alpha adjustment.
Flips a pict horizontally or vertically.
Returns a pict that is like pict, but whose drawing is
confined to its bounding box.
Returns a pict that is like pict, but whose drawing is
rendered at the time of the Pict.freeze call to a bitmap, and
then the new pict draws by drawing the bitmap. The scale
argument determines the scale factor of the bitmap (i.e., the number of
pixels per drawing unit).
Returns a pict that is like pict, but whose drawing is
confined to its time box in the sense that it is represented by
nothing outside of its time box. If keep is
#'before or #'after, then the pict is not clipped in
that time direction. The resulting pict is nonsustaining (in the sense
of Pict.nonsustaining) if nonsustaining is true.
method |
method (pict :: Pict).colorize(c :: (Color || String)) :: Pict |
|
method |
method (pict :: Pict).line_width(w :: NonnegReal) :: Pict |
Returns a pict that is like pict, but wherever it uses
#'inherit for a color or line width, the given color or line
width is used, and the resulting pict no longer uses #'inherit
or colors or line widths.
method | ||
| ||
method | ||
Gets metadata registerd for an epoch with a pict, or returns a
pict that is like pict but with the given metadata for
the given epoch.
When picts are combined through operations like beside or overlay, the combination’s metadata is formed by merging metadata maps from the combined picts, and later picts in the combination take precedence.