Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/canvas/mod.ts>Camera

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface Camera
import { type Camera } from "https://deno.land/x/canvas@v1.0.4/mod.ts";

Properties

eye: Vector3

a 3d point locating the camera.

coa: Vector3

center of attention - the 3d point the camera is looking at.

A unit vector pointing the cameras up direction. Note that using only eye and coa would leave the roll of the camera unspecified.

near: number

near clipping plane distance

far: number

far clipping plane distance

field of view in radians