Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/colors/src/color.ts>linearRgb

Color conversion and stuff in TypeScript
Latest
function linearRgb
import { linearRgb } from "https://deno.land/x/colors@v2.0.2/src/color.ts";

Get linear rgb values

Parameters

color: Color3 | Color4

An array of RGB or RGBA values.

Returns

An array of [R,G,B] values in the linear RGB space, scaled to [0, 1].