Skip to content

@vaguevoid/fiasco / color / Colors / raw

Function: raw()

Call Signature

raw(r, g, b, a?): Color

Defined in: src/color.ts:212

Raw RGBa Color

Parameters

r

number

Red 0-1

g

number

Green 0-1

b

number

Blue 0-1

a?

number

Alpha 0-1. Default 1

Returns

Color

Color

Call Signature

raw(obj): Color

Defined in: src/color.ts:218

Raw RGBa Color

Parameters

obj

Object with r,b,g and optional a field. All between 0-1. Alpha default 1.

a?

number

b

number

g

number

r

number

Returns

Color

Color

Call Signature

raw(arr): Color

Defined in: src/color.ts:224

Raw RGBa Color

Parameters

arr

[number, number, number, number?]

Array with 3 or 4 numbers all between 0-1. arr[0] = r, arr[1] = g, arr[2] = b, arr[3] = a. arr[3] is optional and defaults to 1

Returns

Color

Color

Call Signature

raw(arr): Color

Defined in: src/color.ts:230

Raw RGBa Color

Parameters

arr

number[]

Array with 3 or 4 numbers all between 0-1. arr[0] = r, arr[1] = g, arr[2] = b, arr[3] = a. arr[3] is optional and defaults to 1

Returns

Color

Color