The constructor takes in the 11th case which is inhereted from the DrawSegment class. The only thing we do is add the segments in the correct place in the arrays.
The Drawsegment method is the method which takes care of printing the digit
We return the output in a string [].
Is the top segment of the array.
Is the middle segment of the array.
Is the bottom segment of the array.
Generated using TypeDoc
A Class created to output a small Celsius sign in a 7-segment display
Easy to use:
import DrawCelsius from './DrawCelsius' const celsiusSign = new DrawCelsius(); const outputCelsiusSign = celsiusSign.returnOutput();