Grissess / simula

A graphical network editor, model library, and dataflow programming language for Python
GNU General Public License v3.0
3 stars 1 forks source link

Color wires based on data type #14

Open JacobErnst98 opened 8 years ago

JacobErnst98 commented 8 years ago

I know data type is not strict for work around reason such as arrhythmic/add can be used to add strings but for separating list and string values this would be nice.

Grissess commented 8 years ago

The wire color will likely match the output color, which is challenging if only because the wire is "owned" by the input pin, not the output pin. For efficiency's sake, the wire can be changed to be owned by the output pin, which matches the underlying graph library's interpretation and means the path can be stroked all in one color; otherwise, multiple path strokes with different colors might need to occur.