Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/targadactyl/src/tga.ts>TgaLoader#load

tga.js implemented in Deno
Latest
method TgaLoader.prototype.load
import { TgaLoader } from "https://deno.land/x/targadactyl@1.2.0/src/tga.ts";

Parse Uint8ClampedArray of TGA data

Examples

Example 1

const tga = new TgaLoader();
const file = "./test.tga";
tga.load(
 await tga.open(file)
);

// TGA data has been initialized! 🍾

Parameters

data: Uint8ClampedArray

TGA data

Returns

Returns instance of self used for method chaining