Class: MatrixColor

MatrixColor


new MatrixColor(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)

Color Matrix

a b c d e f g h i j k l m n o p q r s t

Parameters:
Name Type Description
a number
b number
c number
d number
e number
f number
g number
h number
i number
j number
k number
l number
m number
n number
o number
p number
q number
r number
s number
t number

Methods


<static> createLuminanceMatrix()

Creates a luminance matrix: if very bright it will be black else transparent

Returns:
Type
olympe.utils.MatrixColor

<static> createSaturationMatrix(s)

Creates a saturation matrix

Parameters:
Name Type Description
s number
Returns:
Type
olympe.utils.MatrixColor

get(rowId, columnId)

Returns one of the value of the matrix corresponding to row and column given as parameter

Parameters:
Name Type Description
rowId number

zero based

columnId number

zero based

Returns:
Type
number

getStringValue()

Gets the values of the matrix in a space separated string

Returns:
Type
string

set(rowId, columnId, value)

Sets a value in the matrix

Parameters:
Name Type Description
rowId number
columnId number
value number