UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

10 lines (9 loc) 231 B
import { Sampler2D } from "./Sampler2D.js"; /** * * @param {number[]} data * @returns {Sampler2D} */ export function one_pixel_sampler_uint8(data) { return new Sampler2D(new Uint8Array(data), data.length, 1, 1); }