Logic Circuit emulator
This text is displayed if your browser does not support the Canvas HTML element.
This text is displayed if your browser does not support the Canvas HTML element.
The Logic Circuit sample allows the user to make circuits using gates and wires, which are updated whenever a Link is modified and at intervals by a looped setTimeout function. The updateStates function calls a function to update each node according to type, which uses the color of the links into the node to determine the color of those exiting it. Mouse over a node to see its category.

View this sample page's source in-page

View this sample page's source on GitHub