MCPcopy Index your code
hub / github.com/clips/pattern / solid

Function solid

pattern/canvas.js:3061–3067  ·  view source on GitHub ↗
(width, height, clr)

Source from the content-addressed store, hash-verified

3059/*--- IMAGE FILTERS | GENERATORS -------------------------------------------------------------------*/
3060
3061function solid(width, height, clr) {
3062 /* Returns an image with a solid fill color.
3063 */
3064 return render(function(canvas) {
3065 rect(0, 0, width, height, {fill: clr || [0,0,0,0]});
3066 }, width, height);
3067}
3068
3069/*--- IMAGE FILTERS | COLOR ------------------------------------------------------------------------*/
3070

Callers

nothing calls this directly

Calls 2

rectFunction · 0.85
renderFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…