cue.spotlight

Takes the rest of the environment down — the other marks, the grid and the axes — and leaves what it wraps lit. Purely the dimming: nothing is drawn on the content itself, so pair it with a cue.highlight where a ring is wanted too.

cue.spotlightNode
Three frames of a spotlight: three curves at full strength, then the grid, the axes and two of the curves dimming, then only the teal curve lit.Three frames of a spotlight: three curves at full strength, then the grid, the axes and two of the curves dimming, then only the teal curve lit.

#Attributes

atImplicit
When the environment dims: a step index (1), a time (1.5s), or a step with an offset (1 + 500ms).
Can be written as shorthand: cue.spotlight:value
Default0
duration
How long the environment stays dimmed, including coming on and letting go.
Default3s
easing
Shape of the movement: smooth or linear.
linearsmooth
Defaultsmooth
sequential
Defaultfalse

#Allowed content

#Allowed in

#Examples

Three frames of a spotlight: a parabola and a line at full strength, then the line and the axes dimming, then only the parabola lit.Three frames of a spotlight: a parabola and a line at full strength, then the line and the axes dimming, then only the parabola lit.
canvas.graph{
    curve(expression: 2 * x + 3; colour: grey)
    cue.spotlight{
        curve(expression: x^2)
    }(
        at: 1
    )
}(
    x-domain: [-3, 4]
    y-domain: [0, 10]
)
Three frames of the second step: a curve and a point, then everything but the point dimming for four seconds.Three frames of the second step: a curve and a point, then everything but the point dimming for four seconds.
canvas.graph{
    curve(expression: x^2)
    cue.spotlight{
        point(x: 2; y: 4)
    }(
        at: 2
        duration: 4s
    )
}(
    x-domain: [-3, 3]
    y-domain: [0, 9]
)

Last updated