├── .gitignore
├── .nvmrc
├── LICENSE
├── documentation
└── images
│ ├── analogAlgorithms
│ ├── classAlgorithm
│ │ ├── 1.jpg
│ │ ├── 2.jpg
│ │ ├── 3.jpg
│ │ ├── 4.jpg
│ │ └── 5.jpg
│ ├── homeworkVersion1
│ │ ├── 1.jpg
│ │ ├── 10.jpg
│ │ ├── 11.jpg
│ │ ├── 2.jpg
│ │ ├── 3.jpg
│ │ ├── 4.jpg
│ │ ├── 5.jpg
│ │ ├── 6.jpg
│ │ ├── 7.jpg
│ │ ├── 8.jpg
│ │ └── 9.jpg
│ └── homeworkVersion2
│ │ ├── 1.jpg
│ │ ├── 10.jpg
│ │ ├── 2.jpg
│ │ ├── 3.jpg
│ │ ├── 4.jpg
│ │ ├── 5.jpg
│ │ ├── 6.jpg
│ │ ├── 7.jpg
│ │ ├── 8.jpg
│ │ └── 9.jpg
│ ├── beautyShot.png
│ ├── cover-thumb.png
│ ├── cover.png
│ ├── digitalAlgorithm
│ ├── 1.1.png
│ ├── 1.2.png
│ ├── 2.1.png
│ ├── 2.2.png
│ ├── 2.3.png
│ ├── 2.4.png
│ ├── 3.1.png
│ ├── 3.2.png
│ ├── 3.3.png
│ ├── 3.4.png
│ ├── 4.1.png
│ ├── 4.2.png
│ ├── 4.3.png
│ ├── 5.1.png
│ ├── 5.2.png
│ ├── 5.3.png
│ └── 5.4.png
│ ├── exercises
│ ├── drawAPerson.png
│ ├── forLoop.png
│ └── useColorMode.png
│ ├── scribbles
│ ├── 1.jpg
│ ├── 2.jpg
│ └── 3.jpg
│ ├── simulation
│ └── simulation.jpg
│ └── triesAndEperiments
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ └── 4.png
├── package-lock.json
├── package.json
├── readme.md
└── src
├── index.html
├── js
├── algorithm
│ ├── defaults.js
│ ├── drawer.js
│ ├── model
│ │ ├── connector.js
│ │ ├── form.js
│ │ ├── group.js
│ │ └── groups.js
│ └── setup.js
└── index.js
└── styles
└── global.css
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | public
3 | node_modules
4 | npm-debug.log
5 | documentation/esdoc/**
6 | .cache
7 | dist
8 |
--------------------------------------------------------------------------------
/.nvmrc:
--------------------------------------------------------------------------------
1 | 16.16.0
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | Copyright © 2022 Lucas Vogel (vogelino)
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5 |
6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7 |
8 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 |
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/classAlgorithm/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/classAlgorithm/1.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/classAlgorithm/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/classAlgorithm/2.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/classAlgorithm/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/classAlgorithm/3.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/classAlgorithm/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/classAlgorithm/4.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/classAlgorithm/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/classAlgorithm/5.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/1.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/10.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/11.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/2.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/3.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/4.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/5.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/6.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/7.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/8.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion1/9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion1/9.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/1.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/10.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/2.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/3.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/4.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/5.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/6.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/7.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/8.jpg
--------------------------------------------------------------------------------
/documentation/images/analogAlgorithms/homeworkVersion2/9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/analogAlgorithms/homeworkVersion2/9.jpg
--------------------------------------------------------------------------------
/documentation/images/beautyShot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/beautyShot.png
--------------------------------------------------------------------------------
/documentation/images/cover-thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/cover-thumb.png
--------------------------------------------------------------------------------
/documentation/images/cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/cover.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/1.1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/1.1.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/1.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/1.2.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/2.1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/2.1.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/2.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/2.2.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/2.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/2.3.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/2.4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/2.4.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/3.1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/3.1.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/3.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/3.2.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/3.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/3.3.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/3.4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/3.4.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/4.1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/4.1.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/4.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/4.2.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/4.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/4.3.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/5.1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/5.1.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/5.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/5.2.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/5.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/5.3.png
--------------------------------------------------------------------------------
/documentation/images/digitalAlgorithm/5.4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/digitalAlgorithm/5.4.png
--------------------------------------------------------------------------------
/documentation/images/exercises/drawAPerson.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/exercises/drawAPerson.png
--------------------------------------------------------------------------------
/documentation/images/exercises/forLoop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/exercises/forLoop.png
--------------------------------------------------------------------------------
/documentation/images/exercises/useColorMode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/exercises/useColorMode.png
--------------------------------------------------------------------------------
/documentation/images/scribbles/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/scribbles/1.jpg
--------------------------------------------------------------------------------
/documentation/images/scribbles/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/scribbles/2.jpg
--------------------------------------------------------------------------------
/documentation/images/scribbles/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/scribbles/3.jpg
--------------------------------------------------------------------------------
/documentation/images/simulation/simulation.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/simulation/simulation.jpg
--------------------------------------------------------------------------------
/documentation/images/triesAndEperiments/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/triesAndEperiments/1.png
--------------------------------------------------------------------------------
/documentation/images/triesAndEperiments/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/triesAndEperiments/2.png
--------------------------------------------------------------------------------
/documentation/images/triesAndEperiments/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/triesAndEperiments/3.png
--------------------------------------------------------------------------------
/documentation/images/triesAndEperiments/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vogelino/molecular-networks-p5-algorithm/7d3c33516e52bfd5f2c89c759e4a65a22dbffce0/documentation/images/triesAndEperiments/4.png
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "molecular-networks-p5-algorithm",
3 | "version": "1.0.1",
4 | "description": "A p5js algorithm drawin molecular-like forms in a canvas",
5 | "homepage": "https://molecular-networks.vogelino.com",
6 | "repository": {
7 | "type": "git",
8 | "url": "git@github.com:vogelino/molecular-networks-p5-algorithm.git"
9 | },
10 | "scripts": {
11 | "start": "npx serve dist",
12 | "dev": "parcel src/index.html",
13 | "build": "parcel build src/index.html"
14 | },
15 | "engines": {
16 | "node": "16.16.0"
17 | },
18 | "dependencies": {
19 | "immutable": "3.7.5",
20 | "p5": "0.5.3"
21 | },
22 | "devDependencies": {
23 | "parcel-bundler": "1.12.5"
24 | },
25 | "license": "MIT"
26 | }
27 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | [](https://molecular-networks-docs.vogelino.com/)
2 |
3 | ##### [Demo](https://molecular-networks.vogelino.com/) — [Docs](https://molecular-networks-docs.vogelino.com/)
4 |
5 | # Molecular networks: Uniques generated patterns
6 |
7 | Setting up automated processes that follow precise rules can improve productivity and lead to surprising results. An infinite amount of possible designs can be generated from smartly meshed algorithms. Variations that would take hours to create using graphic design tools can that way be delivered in seconds. Process-oriented design is a really powerful asset to designer and has to be taken as advantage.
8 | #### Installation
9 | ```
10 | git clone https://github.com/vogelino/molecular-networks-p5-algorithm.git
11 | cd molecular-networks-p5-algorithm
12 | npm install
13 | ```
14 |
15 | #### Use
16 | Run `npm run watch` and open `http://localhost:8080`
17 |
18 | **Note:** This will only work with node v6.2.0 and npm 3.8.9. I recommend to use nvm to switch between node versions. If you use it, run `nvm use` in the repo root.
19 |
20 | ---
21 |
22 | ## The algorithm
23 | The molecular networks algorithms is the result of many experimentations and exercises done at the course [“Input Output - Introduction to process-oriented design”]( https://fhp.incom.org/workspace/6176) supervised by [Fabian Morón Zirfas](https://github.com/fabiantheblind).
24 |
25 |
26 | The first exercise of the course has been to write an algorithm in 3 minutes in a human-readable language (common language). These lines of _commands_ had to tell the executant how to draw something on a piece of paper. Every student wrote a bunch of rules on a sheet of paper and gave it to the next student so he/she could execute it.
27 |
28 | Here’s how the first algorithm rules looked like:
29 | ```
30 | - Circles, not filled
31 | - Varying sizes
32 | - Not touching or crossing each other
33 | - Few space between them
34 | - Filled canvas (with the circles)
35 | - Most consistent space between the circles as possible
36 | - Black pen
37 | - Randomly some circles drawn with dots
38 | ```
39 |
40 | And the executed results:
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | Some parts of the algorithm's steps may not have been described precisely enough or have been disregarded, but the output is mostly loyal to my original expectations. Time has not been seriously taken in consideration and it led to unfinished results. Also, the interpretation of some rules has been different from executant to executant. For example, the last result did interpret the rule `not filled` as white circles on a dark background. These differences have been analyzed and considered for the next version of the algorithm as room for improvement.
49 |
50 | ---
51 |
52 | ## Corrections and improvements
53 | The second version of the algorithm attempts to avoid the misinterpretations of the first execution. Rules increased as well as the amount of executants:
54 |
55 |
56 | Read the full algorithm before drawing anything. Be aware of the freedom that is been allowed to you.
57 |
58 | Drawn on the paper sheet:
59 | - With a pencil
60 | - A rectangle
61 | - From any height or width
62 | - Parallel to the sheet of paper (not crosswise)
63 | - Drawn softly so you can easily erase it later on
64 |
65 | Inside the rectangle
66 | - With a 2mm wide black pen
67 | - Circles
68 | - Various sizes, willingly alternately
69 | - That do not overlap or contain itself
70 | - Few space between the circles
71 | - Circles fill the inside of the rectangle
72 | - From time to time, the circles are drawn with dotted strokes
73 | - Circles that overlap the sides of the rectangle will be closed with straight lines
74 |
75 | At the end
76 | - With an eraser
77 | - Erase the outline of the rectangle
78 |
79 |
80 | 10 people executed the algorithm. Here are the results:
81 |
82 |
100 | On the given sheet of paper:
101 |
102 | - Draw with a pencil a closed form of free size and position. This form (the unity form) can be composed by straight and curved lines as well as by distinct angles. However, it shouldn't become too complex, because it won't make you the work easier later on. This form represents your near family (parents, brothers and sisters).
103 | - For every member of your family assign following colors:
104 | - Sisters: Light blue
105 | - Brothers: Apple green
106 | - Mother(s): Purple
107 | - Father(s): Salmon pink
108 | - For every member of your family assign also a free but non figurative form (The person form), that should represent this person. This form doesn't necessarily be a basic shape (circle, square, triangle, etc.).
109 | - Fill the family form with person forms in the appropriate color. Use for that the given néocolors. Every member of your family can be drawn many times in the family form. The more you see each member of your family, the more present its form will be represented (by repeating it, changing its size or using another visual dimension). Person forms cannot exceed the family form.
110 | - Erase the family form so that we only discern it by the accumulation of its contents.
111 |
112 | It's over, thank you for your time!
113 |
114 |
115 | And here the results:
116 |
117 |