You are reading a single comment by @SergeP and its replies. Click here to read the full conversation.
  • Hi!
    I've just tried to write an image to my famous clock :) and found a bug with transparent color.

    var image={ width:9 , height:13 , bpp:24 ,
      buffer:Uint24Array(
    [
      0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,­
      0x0,0x100,0x200,0x400,0x800,0x1000,0x200­0,0x4000,0x8000,
      0,0,0,0,0,0,0,0,0,
      0,0,0,0,0,0,0,0,0,
      0x0,0x10000,0x20000,0x40000,0x80000,0x10­0000,0x200000,0x400000,0x800000,
    ]),
      transparent: 0x1,
    };
    gt.drawImage(image, 5, 1);
    neopixel.write(pin, gt.buffer);
    
    

    I expect transparent point is in first image line (I can find it even if image is mirrored because there is second color line near) but it is actually in last one. If I set transparent to 0x10000 I see transparent point in first line while expect it in last one.

About

Avatar for SergeP @SergeP started