MCPcopy Index your code
hub / github.com/processing/processing / smoothToSamples

Method smoothToSamples

core/src/processing/opengl/PGL.java:427–438  ·  view source on GitHub ↗
(int smooth)

Source from the content-addressed store, hash-verified

425
426
427 static public int smoothToSamples(int smooth) {
428 if (smooth == 0) {
429 // smooth(0) is noSmooth(), which is 1x sampling
430 return 1;
431 } else if (smooth == 1) {
432 // smooth(1) means "default smoothing", which is 2x for OpenGL
433 return 2;
434 } else {
435 // smooth(N) can be used for 4x, 8x, etc
436 return smooth;
437 }
438 }
439
440
441 abstract public Object getNative();

Callers 2

initOffscreenMethod · 0.95
initGLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected