Lines Matching refs:c1
94 add : function(c1, c2){
97 result.red = c1.red + c2.red;
98 result.green = c1.green + c2.green;
99 result.blue = c1.blue + c2.blue;
104 addScalar: function(c1, s){
107 result.red = c1.red + s;
108 result.green = c1.green + s;
109 result.blue = c1.blue + s;
116 subtract: function(c1, c2){
119 result.red = c1.red - c2.red;
120 result.green = c1.green - c2.green;
121 result.blue = c1.blue - c2.blue;
126 multiply : function(c1, c2) {
129 result.red = c1.red * c2.red;
130 result.green = c1.green * c2.green;
131 result.blue = c1.blue * c2.blue;
136 multiplyScalar : function(c1, f) {
139 result.red = c1.red * f;
140 result.green = c1.green * f;
141 result.blue = c1.blue * f;
146 divideFactor : function(c1, f) {
149 result.red = c1.red / f;
150 result.green = c1.green / f;
151 result.blue = c1.blue / f;
167 blend: function(c1, c2, w){
170 Flog.RayTracer.Color.prototype.multiplyScalar(c1, 1 - w),
701 var c1 = -N.dot(V);
703 Flog.RayTracer.Vector.prototype.multiplyScalar(N, 2*c1),