wire

A connection from one part's output to another's input. It carries no arrowhead: the level it carries is its colour, lit in the circuit's high: hue at 1, grey at 0, dashed while unknown. Either end may name a port after the id — to: #m.select, from: #ff.qbar — and an end that names none takes the part's next free port. The environment routes it as a flowchart's arrows are routed, from the front of one part to the back of the next. cue.draw strokes one in.

wireNode
A NOT gate between a switch and a lamp: the wire from the switch is grey at 0, the wire to the lamp lit at 1.A NOT gate between a switch and a lamp: the wire from the switch is grey at 0, the wire to the lamp lit at 1.

#Attributes

fromRequiredImplicit
#id of the part it leaves, or #id.port naming one of its outputs.
logic-ref
Can be written as shorthand: wire:value
toRequired
#id of the part it arrives at, or #id.port naming one of its inputs.
logic-ref
label
Rich inline text, set in a chip on the wire's own straight run.
hiddenAnimatable
Declared but not drawn, and taking no room while hidden. It still carries its level. Animatable.
Defaultfalse

#Allowed in

#Examples

wire(from: #a; to: #x1)
wire(from: #s; to: #m.select)

Last updated