Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens
Exemples : 1 viennent des tests de la bibliothèque ; 10 ont été composés à partir de la signature de chaque méthode et exécutés pour cette page, sur un objet neuf, par exemple o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ]). 25 méthodes n'en ont pas encore. Exemples exécutés le 2026-10-03 12:54 dans la bibliothèque au commit 0e72e2e2c.
Méthode
Explication, telle que la source la porte
init
(sans commentaire dans la source : le nom se lit comme une phrase) initaucune extension
the parameters ---------------------------------------------------------- a slider: a name the declaration mentions as {name}, its range, and where it stands now (the range's start when not said)
1 exemples exécutésoM = StzMathMotionQ(:Function, [ :f = "{a} * sin(x)", :on = [ -6.3, 6.3 ], :mark = [ :extrema ], :maxmarks = 3 ])
oM.Param("a", 1, 3, 1)
? oM.Value("a")
#--> 1test de la bibliothèqueQCSXTZZZIBWUParams
(sans commentaire dans la source : le nom se lit comme une phrase) paramsaucune extension
Value
(sans commentaire dans la source : le nom se lit comme une phrase) valueaucune extension
Set
MOVE A SLIDER: clamped to its range; the computed half follows on the next frame, the solved half on the next SettleQCSXTZZZIBWU
IsDirty
(sans commentaire dans la source : le nom se lit comme une phrase) is dirtyexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.IsDirty()
#--> 1composé à partir de la signature, exécuté pour cette page aucune extension Resolved
the solved half: the figure where the parameters last settled ---------- the declaration with every {name} replaced by its value
exemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? @@( o1.Resolved() )
#--> [ [ "f", "{a} * x" ], [ "on", [ 0, 1 ] ] ]composé à partir de la signature, exécuté pour cette page aucune extensionSettle
REBUILD AND RE-SOLVE the figure for the parameters as they stand now, and keep what it cost -- the solved half's numberQCSXTZZZIBWU
SettleMs
(sans commentaire dans la source : le nom se lit comme une phrase) settle msexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.SettleMs()
#--> 0composé à partir de la signature, exécuté pour cette page aucune extension LiveCurve
the live samples of the curve on the settled figure's window, as pixel pieces: [ [ x1, y1, x2, y2, ... ], ... ], broken where the function leaves the window or is not finiteaucune extension
LiveSamples
the live samples in the author's units, for a check: [ [ x, y ], ... ]aucune extension
DrawLiveOn
THE LIVE CURVE DRAWN INTO A CANVAS, cleared first: the overlay the window draws over the settled picture. Keeps what it cost.aucune extension
Counts
the counts a gate asserts the frame's structure by: settles, tape calls and flushes since the motion was made
exemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? @@( o1.Counts() )
#--> [ [ "settles", 0 ], [ "tapecalls", 0 ], [ "flushes", 0 ] ]composé à partir de la signature, exécuté pour cette page aucune extensionFrameMs
(sans commentaire dans la source : le nom se lit comme une phrase) frame msexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.FrameMs()
#--> 0composé à partir de la signature, exécuté pour cette page aucune extension LiveSampleCount
(sans commentaire dans la source : le nom se lit comme une phrase) live sample countexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.LiveSampleCount()
#--> 240composé à partir de la signature, exécuté pour cette page aucune extension Frame
a frame, offscreen: the same composition the window shows -------------- a fresh canvas with the settled picture and the live curve on it; the caller frees it. The overlay path of the window draws the two as separate layers; here they are one canvas, since a saved frame is one picture.aucune extension
FrameSVG
(sans commentaire dans la source : le nom se lit comme une phrase) frame svgaucune extension
FramePNG
(sans commentaire dans la source : le nom se lit comme une phrase) frame pngaucune extension
Play
the window loop ---------------------------------------------------------- THE PLAYER: the settled picture retained in one canvas, the live curve redrawn each frame in an overlay; the first parameter on left/right, the second on up/down, a hundredth of its range per frame held; the picture settles when no key is held and something moved. Escape closes.aucune extension
State
declared STATES ---------------------------------------------------------- A STATE is a caption and the acts that reach it from the state before. An act is a list led by its verb: [ :DragTo, "A.icon", x, y ] a free shape to a place [ :DragBy, "A.icon", dx, dy ] the same, from where it stands [ :SetData, "fr", "ymax", 2 ] a datum into the substance [ :SetTheme, "dark" ] the picture's theme [ :Set, "a", 2 ] a parameter (a :Function motion) A state with no act is the picture as it stands -- the opening frame.QCSXTZZZIBWU
StateFact
a fact the caption of the LAST declared state shows as {hole}: bound now, computed when the frame is closed, on the picture at that stateQCSXTZZZIBWU
States
(sans commentaire dans la source : le nom se lit comme une phrase) statesaucune extension
NumberOfStates
(sans commentaire dans la source : le nom se lit comme une phrase) number of statesexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.NumberOfStates()
#--> 0composé à partir de la signature, exécuté pour cette page aucune extension CaptionOf
(sans commentaire dans la source : le nom se lit comme une phrase) caption ofaucune extension
ActsOf
(sans commentaire dans la source : le nom se lit comme une phrase) acts ofaucune extension
FactsOf
(sans commentaire dans la source : le nom se lit comme une phrase) facts ofaucune extension
Applied
(sans commentaire dans la source : le nom se lit comme une phrase) appliedexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.Applied()
#--> 0composé à partir de la signature, exécuté pour cette page aucune extension ApplyMs
(sans commentaire dans la source : le nom se lit comme une phrase) apply msexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.ApplyMs()
#--> 0composé à partir de la signature, exécuté pour cette page aucune extension Story
(sans commentaire dans la source : le nom se lit comme une phrase) storyaucune extension
Picture
the picture as it stands: the motion's own copy for a :Diagram, the settled figure's diagram for a :Function -- a copy, for readingaucune extension
Apply
THE LIVE PASS: the acts of one state, on the motion's own picture. States are steps, so state n is reached from state n-1; a caller that jumps is asking for the acts of n from wherever the picture stands, which is what it gets and what Applied() then says.QCSXTZZZIBWU
ApplyAll
(sans commentaire dans la source : le nom se lit comme une phrase) apply allaucune extension
ExportTo
the export: a storyboard driven by the same acts ------------------------ EVERY STATE A FRAME. The storyboard takes its own copy of the picture from where it stands now, replays each state's acts on that copy through its own Act (so the frame it closes is the picture AFTER the acts), binds each fact to be computed on that frame, writes the frame as a PNG in the folio, and the narration beside them. A :Function motion settles per state and hands each settled figure in as a frame; its parameters are put back afterwards, so the export leaves the motion where it found it in both cases.aucune extension
PlayStates
the player of states ------------------------------------------------------ each state applied and held on the window for pnDwellMs; Right or Space advance early, Escape closes; the last state holds until Escape. A :Function motion drawn live composes its frame, any other draws its picture as it stands.aucune extension
Why
(sans commentaire dans la source : le nom se lit comme une phrase) whyexemple composé
o1 = new stzMathMotion(:Function, [ :f = "{a} * x", :on = [ 0, 1 ] ])
? o1.Why()
#--> a motion over a function figure with 0 parameter(s):; moved since it settledcomposé à partir de la signature, exécuté pour cette page aucune extension