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

x/colors/src/mod.ts>linearRgb

Color conversion and stuff in TypeScript
Latest
function linearRgb
import { linearRgb } from "https://deno.land/x/colors@v2.0.2/src/mod.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].