You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • If you update to 1v61 now, you can get 2 bit graphics:

    g = Graphics.createArrayBuffer(8,8,2);
    g.setColor(1)      
    g.drawLine(0,0,7,7)
    g.setColor(2)      
    g.drawLine(7,0,0,7)  
    
    a = new Uint16Array(g.buffer)     
    for (i in a) print((a[i]|0x10000).toString(2).substr(1))         
    1000000000000001
    0010000000000100
    0000100000010000
    0000001001000000
    0000000110000000
    0000010000100000
    0001000000001000
    0100000000000010
    RGRGRGRGRGRGRGRG
    
    

    Does that help? That's why you'd want to un-interleave...

About

Avatar for Gordon @Gordon started