Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pig tails. #17

Open
theodore-norvell opened this issue Mar 21, 2020 · 1 comment
Open

Add pig tails. #17

theodore-norvell opened this issue Mar 21, 2020 · 1 comment

Comments

@theodore-norvell
Copy link
Owner

theodore-norvell commented Mar 21, 2020

Currently the ports for or and exclusive or's are strangely located. If we drew ports as short lines that extend from the component's body out to its bounding box we could consiently draw the ports on the bounding box. An or-gate and and and-gate, each with three ports would look like this. (Green boxes represents the boundng box).

image

@theodore-norvell
Copy link
Owner Author

theodore-norvell commented Mar 21, 2020

By drawing the ports first, any parts of the pigtails that fall within the component's outline will be overdrawn by component, as long as we fill components with an opaque colour. So there is no need for fancy calculations about where the pigtail should end. just make it kind of long.

Unfortunately placing the negation circles isn't quite so easy on the input side of or-gates and xor-gates gates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant