Skip to main content
Module

x/targadactyl/deps.ts>PictureRecorder

tga.js implemented in Deno
Latest
interface PictureRecorder
import { type PictureRecorder } from "https://deno.land/x/targadactyl@1.2.0/deps.ts";

Methods

beginRecording(bounds: InputRect): Canvas

Returns a canvas on which to draw. When done drawing, call finishRecordingAsPicture()

finishRecordingAsPicture(): SkPicture

Returns the captured draw commands as a picture and invalidates the canvas returned earlier.