function genColor() {
            let ret = [];
            if (state.nextColor < 16777215) {
                ret.push(state.nextColor & 0xff); // R
                ret.push((state.nextColor & 0xff00) >> 8); // G
                ret.push((state.nextColor & 0xff0000) >> 16); // B
                state.nextColor += 1;
            }
            return 'rgb(' + ret.join(',') + ')';
        }
// Function to create new colours for the picking.
Function to create new colours for the picking.
Function to create new colours for the picking .
function genColor() {
            let ret = [];
            if (state.nextColor < 16777215) {
                ret.push(state.nextColor & 0xff); 
                ret.push((state.nextColor & 0xff00) >> 8); 
                ret.push((state.nextColor & 0xff0000) >> 16); 
                state.nextColor += 1;
            }
            return 'rgb(' + ret.join(',') + ')';
        }
function genColor ( ) { let ret = [ ] ; if ( state . nextColor < 16777215 ) { ret . push ( state . nextColor & 0xff ) ; ret . push ( ( state . nextColor & 0xff00 ) >> 8 ) ; ret . push ( ( state . nextColor & 0xff0000 ) >> 16 ) ; state . nextColor += 1 ; } return 'rgb(' + ret . join ( ',' ) + ')' ; }
Function to create new colours for the picking.
Function to create new colours for the picking .
// R // G // B