Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/math/Color.d.ts>Color#fromArray

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method Color.prototype.fromArray
import { Color } from "https://deno.land/x/threejs_4_deno@v121/src/math/Color.d.ts";

Sets this color's red, green and blue value from the provided array.

Parameters

array: number[]

the source array.

optional
offset: number

(optional) offset into the array. Default is 0.

Sets this color's red, green and blue value from the provided array-like.

Parameters

array: ArrayLike<number>

the source array-like.

optional
offset: number

(optional) offset into the array-like. Default is 0.