MCPcopy Create free account
hub / github.com/breck7/scroll / clamp

Function clamp

external/.d3.js:3159–3161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3157 return this;
3158 },
3159 clamp() {
3160 return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
3161 },
3162 displayable() {
3163 return (-0.5 <= this.r && this.r < 255.5)
3164 && (-0.5 <= this.g && this.g < 255.5)

Callers 2

scaleFunction · 0.85
transformer$2Function · 0.85

Calls 4

clampiFunction · 0.85
clampaFunction · 0.85
clamphFunction · 0.85
clamptFunction · 0.85

Tested by

no test coverage detected