The constructor takes in the 11th case which is inhereted from the DrawBigSegment class. This is inhereted from the DrawSegment. The only thing we do is add the segments in the correct place in the arrays.
Drawsegment that returns a string[] with the number.
The Drawsegment method is the method which takes care of printing the digit
The top segment of the 7-segment display
The first middle segment of the 7-segment display
The second middlesegment of the 7-segment display
The first bottom segment of the 7-segment display
The second bottom segment of the 7-segment display
The function helps us return the segment as a string array. This also helps to make the code more clear.
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 big Celsius sign in a 7-segment display
Easy to use:
import DrawBigCelsius from './DrawBigCelsius' const degreesSign = new DrawBigDegrees; const outputDegreesSign = degreesSign.returnOutput();