by mundizzle · 14y ago · 0 comments
instead i do something like this. (incorrect trailing commas removed from the previous example)
var infos = [
{
name: "red",
value: [255, 0, 0, 255]
},
{
name: "green",
value: [0, 255, 0, 255]
},
{
name: "blue",
value: [0, 0, 255, 255]
}
]; M_CAT02 = new Matrix3([
.7328, .4296, -.1624,
-.7036, 1.6975, .0061,
.0030, .0136, .9834])
M_HPE = new Matrix3([
.38971, .68898, -.07868,
-.22981, 1.18340, .04641,
.00000, .00000, 1.00000])
Without lining those all up, it becomes a real pain in the butt to read the matrix.