ra4king / CircuitSim

Basic Circuit Simulator
https://ra4king.github.io/CircuitSim
BSD 3-Clause "New" or "Revised" License
76 stars 27 forks source link

NOT peers have a negate input property #83

Closed ausbin closed 1 year ago

ausbin commented 1 year ago

If you place a NOT gate, you can negate its input:

image

However, the bubble is not drawn, and it does not appear to change the behavior of the gate:

image

However, it does shift the gate over as if there was a bubble. Below is with the mystery property set to false:

image

Normally I would try to make myself useful and fix this, but I got stuck on the following:

  1. It's tempting to check if there are 1 inputs in GatePeer, but in the future we could add a gate that takes 1 input but for which a bubbled input is useful (no clue what that would be)
  2. I'm not sure if (1) would change the x/y of the gate, breaking existing circuits with the mystery property set to true (you would know this better)
ra4king commented 1 year ago

How did I miss this... fixed in 199e5ad. Thanks!