# Hradla

Logic network simulator

## Controls

| action                                                     | controls                                                                       |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------ |
| move the canvas                                            | drag with `middle mouse` or `ctrl + left mouse`                                |
| zoom the canvas                                            | `ctrl + middle wheel` or `ctrl + + / ctrl + -`                                 |
| open the context menu (add elements)                       | `right click`                                                                  |
| open the context menu for an element (add/remove elements) | `right click` on the element                                                   |
| rotate an element clockwise                                | `middle click`                                                                 |
| rotate an element counterclockwise                         | `ctrl + middle click`                                                          |
| set element state (enable / disable input on an input box) | `left click` on the element                                                    |
| add a wire                                                 | `left click` on the first connector, than `left click` on the second connector |

## Connector states

| state       | color                           |
| ----------- | ------------------------------- |
| unknown     | <!-- color unknown --> grey     |
| 1           | <!-- color on --> green         |
| 0           | <!-- color off --> red          |
| oscillating | <!-- color oscillating --> blue |
