跳转到内容
查看源码

trace自动生成

分类:创作协议 · Session

运行某个节点 Kernel 的一个元素,并展示每一步。

Runs one element of a node’s Kernel and shows every step of it; with no context fields, under the last frame’s context.

{"id": 1, "op": "trace", "node": "gray"}
名称 类型 必需 说明
node string 是 the node
at [x, y] | [x, y, z] 否 the element in a grid or a volume; or element
element integer 否 the element in rows, or a scan’s step
time number 否 session time in seconds; 0 when not given
rate number 否 the sound clock, frames a second, which Kernels read as rate()
queued number 否 the samples (per channel) the sound device holds and has not played, which Kernels read as queued(); 0 when not given
pointer [x, y] 否 the pointer in the output’s pixels from its top left, as a Kernel’s pointer() reads it
down bool 否 whether the pointer is pressed, what pointer_down() reads
buttons [integer] 否 buttons held: 0 left, 1 right, 2 middle, then a pad’s
wheel [x, y] 否 the scroll for this frame
sticks [[x, y]] 否 a pad’s left stick, right stick and triggers, up to three pairs
pads integer 否 how many pads are connected, what pads() reads
keys [integer] 否 keys held, by the browser’s codes
text string 否 the characters typed since the last evaluation, what typed() reads; 32 at most
window [w, h] 否 the window in pixels; else the session’s
scale number 否 the window’s scale factor, with window; 1 when not given

kernel, at, bindings, results, calls, and when the element failed, fault: its message, the function it failed in with that function’s bindings, and the operation’s path, line and column