MCPcopy Create free account
hub / github.com/processing/p5.js / constrain

Function constrain

src/webgl/p5.Framebuffer.js:11–11  ·  view source on GitHub ↗
(n, low, high)

Source from the content-addressed store, hash-verified

9import { Texture } from './p5.Texture';
10
11const constrain = (n, low, high) => Math.max(Math.min(n, high), low);
12
13class FramebufferCamera extends Camera {
14 constructor(framebuffer) {

Callers 13

drawFunction · 0.85
drawFunction · 0.85
jiggleZoogFunction · 0.85
jiggleMethod · 0.85
drawFunction · 0.85
jiggleMethod · 0.85
drawFunction · 0.85
attractor.jsFile · 0.85
attractedMethod · 0.85
drawFunction · 0.85
mouseClickedFunction · 0.85
drawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected