lamp

An output of a logic circuit, drawn as an indicator lamp that lights when its wire carries 1.

lampNode
On this page
Two switches through an AND gate to a lamp lit green.Two switches through an AND gate to a lamp lit green.

#Attributes

colour
The colour this lamp lights in, instead of the circuit's high:.
paint
Also written: color
hiddenAnimatable
Declared but not drawn, and taking no room while hidden.
Defaultfalse

#Derived attributes

Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.

levelDerived
The level arriving at the lamp: 0, 1, or absent while unknown.

#Allowed content

Body { }The lamp's label, rich inline

#Allowed in

#Examples

lamp#cout{$C_{out}$}
lamp#ok{Ready}(colour: green)

#Notes

  • Drawn as a circle crossed through, at the end its wire arrives.
  • Its label is set beside it with its level beneath — a question mark while unknown.

Last updated