Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
argb
Method · 0.95
Calls
3
round
Method · 0.80
max
Method · 0.45
min
Method · 0.45
Tested by
no test coverage detected