Manual
Overview
Language
IntroductionScenes & structureText & inlineGraphsCode panesAnimationDataReuse & logicExpressions & parameters
Elements
Text
ParagraphHeading 1Heading 2Heading 3Heading 4Unordered ListDivider
Media
ImageTableEquation
Callouts
NoteDefinitionExampleTask
Graph
GraphLinePolygonCurveIntegralScatterHistogramPointSegmentVectorCircleSquareRectangleTriangleStarDiamondHexagonTextAxis labelAxis BraceFitResidualsContourHeatmapParameter
Code
Code canvasLines
Animation
CueDraw cueTrace cueHighlight cueSpotlight cueType cue
Structure
SceneStep
Reference
Internote Reference
Inline
Formatting
BoldItalicsInline CodeHighlightLink
Text colour
Red textOrange textYellow textGreen textTeal textBlue textPurple textPink textGrey text
Maths
Maths
Reference
Internote ReferenceValueConstant
Other
FootnoteIcon
Directives
DatasetIncludeConstantsTemplatePresetConditionalForIgnore
Keyframes
KeyframeZoom keyframe
Attribute types
?
  1. Elements
  2. Animation
  3. Type cue

Type cue

cue.typeBlock elementAnimation

Lines typed in character by character on the timeline — the code pane’s own verb. It wraps `lines` chunks: `in:` says when the typing starts, `speed:` is characters per second (the window’s length is the text’s length over the speed), and `out:` runs the same clock backwards, deleting from the end like a backspace. A caret mark rides the line being typed, and that line carries a wash while the window is open.

Attributes

inImplicit
optional-cue-anchor
When the typing starts: a step index (1), a time (1.5s), or a step with an offset (1 + 500ms).The head shorthand supplies it: cue.type:value
Defaultnone
out
optional-cue-anchor
When the deleting starts, in the same form.
Defaultnone
speed
number
Also written: cpsCharacters per second.
Default20

Allowed content

Body { }
lines

Allowed in

canvas.code { }

Examples

cue.type{
    lines{
return message
    }(
        indent: 1
    )
}(
    in: 1
    speed: 30
)
cue.type{
    lines{
print("draft")
    }
}(
    in: 1
    out: 2
)
On this page
AttributesAllowed contentAllowed inExamples
Type cue · Internote