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

x/sdl2/mod.ts>Canvas#drawLines

SDL2 module for Deno
Latest
method Canvas.prototype.drawLines
import { Canvas } from "https://deno.land/x/sdl2@0.9.0/mod.ts";

Draw a series of connected lines on the current rendering target.

Parameters

points: [number, number][]

an array of Points (x, y) structures representing points along the lines