File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,6 @@ class AsciiEffect {
118
118
}
119
119
120
120
121
- const aDefaultCharList = ( ' .,:;i1tfLCG08@' ) . split ( '' ) ;
122
- const aDefaultColorCharList = ( ' CGO08@' ) . split ( '' ) ;
123
121
const strFont = 'courier new, monospace' ;
124
122
125
123
const oCanvasImg = renderer . domElement ;
@@ -138,9 +136,19 @@ class AsciiEffect {
138
136
139
137
}
140
138
141
- let aCharList = ( bColor ? aDefaultColorCharList : aDefaultCharList ) ;
139
+ let aCharList ;
140
+ if ( charSet ) {
141
+
142
+ aCharList = ( charSet ) . split ( '' ) ;
143
+
144
+ } else {
145
+
146
+ const aDefaultCharList = ( ' .,:;i1tfLCG08@' ) . split ( '' ) ;
147
+ const aDefaultColorCharList = ( ' CGO08@' ) . split ( '' ) ;
148
+ aCharList = ( bColor ? aDefaultColorCharList : aDefaultCharList ) ;
149
+
150
+ }
142
151
143
- if ( charSet ) aCharList = charSet ;
144
152
145
153
// Setup dom
146
154
You can’t perform that action at this time.
0 commit comments