UNPKG

@thi.ng/pixel

Version:

Typedarray integer & float pixel buffers w/ customizable formats, blitting, drawing, convolution

15 lines (14 loc) 283 B
import { Lane } from "../api.js"; import { defIntFormat } from "./int-format.js"; const RGB565 = defIntFormat({ type: "u16", size: 16, channels: [ { size: 5, lane: Lane.RED }, { size: 6, lane: Lane.GREEN }, { size: 5, lane: Lane.BLUE } ] }); export { RGB565 };