MCPcopy Create free account
hub / github.com/benfry/processing4 / bounded

Method bounded

app/src/processing/app/ui/Theme.java:371–373  ·  view source on GitHub ↗
(double amount)

Source from the content-addressed store, hash-verified

369
370
371 static private int bounded(double amount) {
372 return Math.max(0, Math.min((int) Math.round(amount), 255));
373 }
374
375
376 static private int argb(double[] rgb) {

Callers 1

argbMethod · 0.95

Calls 3

roundMethod · 0.80
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected