Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions examples/jsm/effects/AsciiEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ class AsciiEffect {
}


const aDefaultCharList = ( ' .,:;i1tfLCG08@' ).split( '' );
const aDefaultColorCharList = ( ' CGO08@' ).split( '' );
const strFont = 'courier new, monospace';

const oCanvasImg = renderer.domElement;
Expand All @@ -138,9 +136,19 @@ class AsciiEffect {

}

let aCharList = ( bColor ? aDefaultColorCharList : aDefaultCharList );
let aCharList;
if ( charSet ) {

aCharList = ( charSet ).split( '' );

} else {

const aDefaultCharList = ( ' .,:;i1tfLCG08@' ).split( '' );
const aDefaultColorCharList = ( ' CGO08@' ).split( '' );
aCharList = ( bColor ? aDefaultColorCharList : aDefaultCharList );

}

if ( charSet ) aCharList = charSet;

// Setup dom

Expand Down