Lines Matching refs:plot
116 static void plot(SkCanvas* canvas, in plot() function
169 plot(canvas, fn, xMin, xMax, yMin, yMax, label, /*requireES3=*/true); in plot_es3()
182 plot(canvas, "radians(x)", 0.0f, 360.0f, 0.0f, kTwoPI);
183 plot(canvas, "degrees(x)", 0.0f, kTwoPI, 0.0f, 360.0f);
186 plot(canvas, "sin(x)", 0.0f, kTwoPI, -1.0f, 1.0f);
187 plot(canvas, "cos(x)", 0.0f, kTwoPI, -1.0f, 1.0f);
188 plot(canvas, "tan(x)", 0.0f, kPI, -10.0f, 10.0f);
191 plot(canvas, "asin(x)", -1.0f, 1.0f, -kPIOverTwo, kPIOverTwo);
192 plot(canvas, "acos(x)", -1.0f, 1.0f, 0.0f, kPI);
193 plot(canvas, "atan(x)", -10.0f, 10.0f, -kPIOverTwo, kPIOverTwo);
196 plot(canvas, "atan(0.1, x)", -1.0f, 1.0f, 0.0f, kPI);
197 plot(canvas, "atan(-0.1, x)", -1.0f, 1.0f, -kPI, 0.0f);
200 plot(canvas, "atan(x, 0.1)", -1.0f, 1.0f, -kPIOverTwo, kPIOverTwo);
201 plot(canvas, "atan(x, -0.1)", -1.0f, 1.0f, -kPI, kPI);
241 plot(canvas, "pow(x, 3)", 0.0f, 8.0f, 0.0f, 500.0f);
242 plot(canvas, "pow(x, -3)", 0.0f, 4.0f, 0.0f, 10.0f);
245 plot(canvas, "pow(0.9, x)", -10.0f, 10.0f, 0.0f, 3.0f);
246 plot(canvas, "pow(1.1, x)", -10.0f, 10.0f, 0.0f, 3.0f);
249 plot(canvas, "exp(x)", -1.0f, 7.0f, 0.0f, 1000.0f);
250 plot(canvas, "log(x)", 0.0f, 2.5f, -4.0f, 1.0f);
253 plot(canvas, "exp2(x)", -1.0f, 7.0f, 0.0f, 130.0f);
254 plot(canvas, "log2(x)", 0.0f, 4.0f, -4.0f, 2.0f);
257 plot(canvas, "sqrt(x)", 0.0f, 25.0f, 0.0f, 5.0f);
258 plot(canvas, "inversesqrt(x)", 0.0f, 25.0f, 0.2f, 4.0f);
270 plot(canvas, "abs(x)", -10.0f, 10.0f, 0.0f, 10.0f);
271 plot(canvas, "sign(x)", -1.0f, 1.0f, -1.5f, 1.5f);
274 plot(canvas, "floor(x)", -3.0f, 3.0f, -4.0f, 4.0f);
275 plot(canvas, "ceil(x)", -3.0f, 3.0f, -4.0f, 4.0f);
276 plot(canvas, "fract(x)", -3.0f, 3.0f, 0.0f, 1.0f);
277 plot(canvas, "mod(x, 2)", -4.0f, 4.0f, -2.0f, 2.0f, "mod(scalar)");
278 plot(canvas, "mod(p, -2).x", -4.0f, 4.0f, -2.0f, 2.0f, "mod(mixed)" );
279 plot(canvas, "mod(p, v2).x", -4.0f, 4.0f, -2.0f, 2.0f, "mod(vector)");
282 plot(canvas, "min(x, 1)", 0.0f, 2.0f, 0.0f, 2.0f, "min(scalar)");
283 plot(canvas, "min(p, 1).x", 0.0f, 2.0f, 0.0f, 2.0f, "min(mixed)" );
284 plot(canvas, "min(p, v1).x", 0.0f, 2.0f, 0.0f, 2.0f, "min(vector)");
285 plot(canvas, "max(x, 1)", 0.0f, 2.0f, 0.0f, 2.0f, "max(scalar)");
286 plot(canvas, "max(p, 1).x", 0.0f, 2.0f, 0.0f, 2.0f, "max(mixed)" );
287 plot(canvas, "max(p, v1).x", 0.0f, 2.0f, 0.0f, 2.0f, "max(vector)");
290 plot(canvas, "clamp(x, 1, 2)", 0.0f, 3.0f, 0.0f, 3.0f, "clamp(scalar)");
291 plot(canvas, "clamp(p, 1, 2).x", 0.0f, 3.0f, 0.0f, 3.0f, "clamp(mixed)" );
292 plot(canvas, "clamp(p, v1, v2).x", 0.0f, 3.0f, 0.0f, 3.0f, "clamp(vector)");
293 plot(canvas, "saturate(x)", -1.0f, 2.0f, -0.5f, 1.5f);
296 plot(canvas, "mix(1, 2, x)", -1.0f, 2.0f, 0.0f, 3.0f, "mix(scalar)");
297 plot(canvas, "mix(v1, v2, x).x", -1.0f, 2.0f, 0.0f, 3.0f, "mix(mixed)" );
298 plot(canvas, "mix(v1, v2, p).x", -1.0f, 2.0f, 0.0f, 3.0f, "mix(vector)");
301 plot(canvas, "step(1, x)", 0.0f, 2.0f, -0.5f, 1.5f, "step(scalar)");
302 plot(canvas, "step(1, p).x", 0.0f, 2.0f, -0.5f, 1.5f, "step(mixed)" );
303 plot(canvas, "step(v1, p).x", 0.0f, 2.0f, -0.5f, 1.5f, "step(vector)");
304 plot(canvas, "smoothstep(1, 2, x)", 0.5f, 2.5f, -0.5f, 1.5f, "smooth(scalar)");
305 plot(canvas, "smoothstep(1, 2, p).x", 0.5f, 2.5f, -0.5f, 1.5f, "smooth(mixed)" );
306 plot(canvas, "smoothstep(v1, v2, p).x", 0.5f, 2.5f, -0.5f, 1.5f, "smooth(vector)");
309 plot(canvas, "floor(p).x", -3.0f, 3.0f, -4.0f, 4.0f);
310 plot(canvas, "ceil(p).x", -3.0f, 3.0f, -4.0f, 4.0f);
311 plot(canvas, "floor(p).y", -3.0f, 3.0f, -4.0f, 4.0f);
312 plot(canvas, "ceil(p).y", -3.0f, 3.0f, -4.0f, 4.0f);
384 plot(canvas, "length(x)", -1.0f, 1.0f, -0.5f, 1.5f);
385 plot(canvas, "length(p)", 0.0f, 1.0f, 0.5f, 1.5f);
386 plot(canvas, "distance(x, 0)", -1.0f, 1.0f, -0.5f, 1.5f);
387 plot(canvas, "distance(p, v1)", 0.0f, 1.0f, 0.5f, 1.5f);
390 plot(canvas, "dot(x, 2)", -1.0f, 1.0f, -2.5f, 2.5f);
391 plot(canvas, "dot(p, p.y1)", -1.0f, 1.0f, -2.5f, 0.5f);
394 plot(canvas, "cross(p.xy1, p.y1x).x", 0.0f, 1.0f, -1.0f, 1.0f);
395 plot(canvas, "cross(p.xy1, p.y1x).y", 0.0f, 1.0f, -1.0f, 1.0f);
396 plot(canvas, "cross(p.xy1, p.y1x).z", 0.0f, 1.0f, -1.0f, 1.0f);
399 plot(canvas, "normalize(x)", -2.0f, 2.0f, -1.5f, 1.5f);
400 plot(canvas, "normalize(p).x", 0.0f, 2.0f, 0.0f, 1.0f);
401 plot(canvas, "normalize(p).y", 0.0f, 2.0f, 0.0f, 1.0f);
402 plot(canvas, "faceforward(v1, p.x0, v1.x0).x", -1.0f, 1.0f, -1.5f, 1.5f, "faceforward");
405 plot(canvas, "reflect(p.x1, v1.0x).x", -1.0f, 1.0f, -1.0f, 1.0f, "reflect(horiz)");
406 plot(canvas, "reflect(p.x1, normalize(v1)).y", -1.0f, 1.0f, -1.0f, 1.0f, "reflect(diag)" );
407 plot(canvas, "refract(v1.x0, v1.0x, x).x", 0.0f, 1.0f, -1.0f, 1.0f, "refract().x");
408 plot(canvas, "refract(v1.x0, v1.0x, x).y", 0.0f, 1.0f, -1.0f, 1.0f, "refract().y");