Lines Matching refs:w
11 print(buf[y * w // 2 : (y + 1) * w // 2])
15 w = 16 variable
17 buf = bytearray(w * h // 2)
18 fbuf = framebuf.FrameBuffer(buf, w, h, framebuf.GS4_HMSB)
29 fbuf.pixel(w - 1, 0, 0x02)
31 fbuf.pixel(w - 1, h - 1, 0x03)
37 print(fbuf.pixel(0, 0), fbuf.pixel(w - 1, 0), fbuf.pixel(w - 1, h - 1), fbuf.pixel(0, h - 1))
38 print(fbuf.pixel(1, 0), fbuf.pixel(w - 2, 0), fbuf.pixel(w - 2, h - 1), fbuf.pixel(1, h - 1))
41 fbuf.fill_rect(0, 0, w, h, 0x0F)
43 fbuf.fill_rect(0, 0, w, h, 0xF0)
44 fbuf.fill_rect(1, 0, w // 2 + 1, 1, 0xF1)
46 fbuf.fill_rect(1, 0, w // 2 + 1, 1, 0x10)
47 fbuf.fill_rect(1, 0, w // 2, 1, 0xF1)
49 fbuf.fill_rect(1, 0, w // 2, 1, 0x10)
50 fbuf.fill_rect(0, h - 4, w // 2 + 1, 4, 0xAF)
52 fbuf.fill_rect(0, h - 4, w // 2 + 1, 4, 0xB0)
53 fbuf.fill_rect(0, h - 4, w // 2, 4, 0xAF)
55 fbuf.fill_rect(0, h - 4, w // 2, 4, 0xB0)