!cue.highlight

Marks a run of words in a paragraph, heading or list on the canvas: when in fires, a wash is drawn across the words, and at out it is drawn back the way it came. Plain words take the highlight’s text colour while they are marked; words already coloured with a colour micronode keep theirs. The inline form of cue.highlight, for pointing at a phrase rather than a whole mark. Presence is untouched, so the words are there before and after. Canvas-only: written in a scene’s narrative, it is a compile error. in is the implicit attribute, so !cue.h:2{the gradient} marks the words from step 2 to the end of the scene. In a table cell, a caption or a mark’s label the words are shown without the mark.

!cue.highlightMicronodeAliases:cue.h
Three frames of a paragraph and a list on the canvas: plain text, then a yellow wash half drawn across the word gradient and a teal one across f(x), then both washes whole.Three frames of a paragraph and a list on the canvas: plain text, then a yellow wash half drawn across the word gradient and a teal one across f(x), then both washes whole.

#Attributes

inImplicit
When the wash is drawn: a step index (1), a time (1.5s), or a step with an offset (1 + 500ms).
Can be written as shorthand: !cue.highlight:value
Default0
out
When the wash is drawn back off the words, in the same forms as in. Left as none, the words stay marked for the rest of the scene.
Defaultnone
in-duration
How long the wash takes to be drawn across the words.
Also written: duration
Default500ms
out-duration
How long the wash takes to be drawn back.
Default500ms
colour
The wash’s colour. Left out, it takes the colour of the words it marks, and is yellow on plain text.
bluelight-bluedark-blueredlight-reddark-redorangelight-orangedark-orangeyellowlight-yellowdark-yellowteallight-tealdark-tealgreenlight-greendark-greenpinklight-pinkdark-pinkpurplelight-purpledark-purplegreylight-greydark-greyneutralhex(…)rgb(…)
Also written: color
easing
Shape of the draw in and out: smooth or linear.
linearsmooth
Defaultsmooth

#Allowed content

Body { }Inline Chalk content (formatted text, inline math, links, and inline elements)

#Examples

The !cue.h:1{gradient} is the rise over the run.
- !cue.h{!teal{f(x)}}(in: 2; out: 3) climbs
- !cue.h:3{!orange{g(x)}} falls
# Where !cue.highlight{the curves meet}(in: 2 + 500ms; duration: 1s; colour: blue)

Last updated