mortbopet / VSRTL

Visual Simulation of Register Transfer Logic
MIT License
87 stars 17 forks source link

Modify the "Shape" struct and related drawing to include center text #45

Closed mortbopet closed 4 years ago

mortbopet commented 4 years ago

It should be possible to specify some decorative text to be drawn in the center of a component. This could be useful for ie. an adder, drawing a '+' in the center. Possibly this could also be done with some function which may change the text drawn inside a component based on the state of the component (ie. a comparator could have different comparison signs based on the requested comparison type).

mortbopet commented 4 years ago

All components are generated with a label which may be edited by the user.