curves for wires & importing logic gates
This commit is contained in:
parent
443d049db6
commit
b06a4c7441
22 changed files with 1117 additions and 588 deletions
BIN
docs/assets/gist.png
Normal file
BIN
docs/assets/gist.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 7.1 KiB |
BIN
docs/assets/gist_url.png
Normal file
BIN
docs/assets/gist_url.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 3 KiB |
93
docs/controls.md
Normal file
93
docs/controls.md
Normal file
|
@ -0,0 +1,93 @@
|
|||
# Controls
|
||||
|
||||
## Moving around
|
||||
|
||||
- To move around, just click anywhere in the enviroment, drag in the oposite of the direction you want to moe in.
|
||||
- Release when you finished the desired movement.
|
||||
|
||||
## Zooming
|
||||
|
||||
- To zoom in, scroll upwards.
|
||||
- To zoom out, scroll downwards.
|
||||
- The zoom will be applied in the position pointed by the mouse.
|
||||
|
||||
## Moving a component
|
||||
|
||||
- To move a component, left click on it.
|
||||
- The gate will follow your mouse
|
||||
- Release when the gate got in the desired position
|
||||
|
||||
## Deleting a component
|
||||
|
||||
- To remove a component, right click on it.
|
||||
|
||||
## Connection 2 pins
|
||||
|
||||
- To connect 2 pins, first click on one of them.
|
||||
- Click on the other pin
|
||||
|
||||
> Note: You cannot connect 2 pins of the same type.
|
||||
|
||||
## Deleting a wire
|
||||
|
||||
- To delete a wire, click on it
|
||||
|
||||
## Opening the command palette
|
||||
|
||||
- To open the command palette, press ctrl + shift + p
|
||||
|
||||
## Creating a simulation
|
||||
|
||||
- To create a simulation, click the first button from the top of the sidebar, then type the desired name.
|
||||
|
||||
## Saving a simulation
|
||||
|
||||
- To save a simulation, follow one of the following actions:
|
||||
1. Press ctrl + s
|
||||
2. Open the command palette and type save, then press enter
|
||||
3. Click on the 'simulation' button, then click 'save'
|
||||
|
||||
## Opening a simulation
|
||||
|
||||
- To open a simulation, click 'open simulation', then click the name of the simulation
|
||||
|
||||
## Deleting a simulation
|
||||
|
||||
- To delete a simulation, click 'open simulation', and then click the 'delete' icon on the row of your desired simulation.
|
||||
|
||||
## Rewind to the latest save (undo)
|
||||
|
||||
- To rewind to the latest save, follow one of the following actions:
|
||||
1. Press ctrl + z
|
||||
2. Click 'simulation' and then click 'undo'
|
||||
|
||||
## Downloading a simulation
|
||||
|
||||
- To download a simulation, follow one of the following actions:
|
||||
1. Click 'simulation' and then type 'download'
|
||||
2. Open the command palette, type 'download' and then press enter
|
||||
|
||||
> Note: You can also type 'download --save' or 'download -s' in the command palette to also save the simulation before downloading it
|
||||
|
||||
## Deleting a simulation
|
||||
|
||||
- To delete a simulation, press 'simulation' and then press 'delete'
|
||||
- Press 'yes'
|
||||
|
||||
## Refreshing the enviroment
|
||||
|
||||
- To refresh the enviroment (reload all components), follow one of the following actions:
|
||||
1. Click 'simulation' and then click 'refresh'
|
||||
2. Press sfhit + delete
|
||||
|
||||
> Note: this won't refresh the whole window. To refresh the whole window, use the ui built in your browser
|
||||
|
||||
> Note 2: this can be useful if you just edited a custom logic gate and you want to see the changes without refreshing the whole window
|
||||
|
||||
## Clearing a simulation
|
||||
|
||||
> Note: cleaning = deleting all logic gates wich are not connected to anything
|
||||
|
||||
- To clear a simulation follow one of the following actions:
|
||||
1. Click 'simulation'and then click 'clean'
|
||||
2. Press shift + delete
|
13
docs/import.md
Normal file
13
docs/import.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# importing a logic gate
|
||||
|
||||
## Opening the import palette
|
||||
|
||||
- To open the import palette, follow one of the following actions:
|
||||
|
||||
1. Press ctrl + g
|
||||
2. Press 'custom gates' and then press 'import new gate'
|
||||
|
||||
## Importing a logic gate
|
||||
|
||||
- Open the import palette
|
||||
- Type a valid command (see **[the url parser](./url.md)**)
|
10
docs/main.md
Normal file
10
docs/main.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Welcome
|
||||
|
||||
Hello, and welcome to my logic gate simulator! I know it can look kinda scary at first, so that's why i wrote these docs!
|
||||
|
||||
I recomand reading the first 3 chapters before you start, and then only dig deeper into the others when you feel you mastered the basics!
|
||||
|
||||
# Table of contents
|
||||
|
||||
1. [Basic controls](./controls.md)
|
||||
2. [Importing a custom logic gate](import.md)
|
13
docs/url.md
Normal file
13
docs/url.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# The url parser
|
||||
|
||||
If the first word is 'gist', the parser will automatcally try to fetch the github gist with the id equl to the second word:
|
||||
|
||||
**_Eg_**:
|
||||
|
||||
```
|
||||
gist 8886faa6f99a7d2667ea8aa2f81ace04
|
||||
```
|
||||
|
||||

|
||||
|
||||
Else, the parser will just try to fetch directly from the full string
|
Loading…
Add table
Add a link
Reference in a new issue