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 RGB888 = defIntFormat({ type: "u32", size: 24, channels: [ { size: 8, lane: Lane.RED }, { size: 8, lane: Lane.GREEN }, { size: 8, lane: Lane.BLUE } ] }); export { RGB888 };