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

Function fill

pattern/canvas.js:669–676  ·  view source on GitHub ↗
(r, g, b, a)

Source from the content-addressed store, hash-verified

667}
668
669function fill(r, g, b, a) {
670 /* Sets the current fill color for drawing primitives and paths.
671 */
672 if (r !== undefined) {
673 _ctx.state.fill = (r instanceof Color || r instanceof Gradient)? r.copy() : new Color(r, g, b, a);
674 }
675 return _ctx.state.fill;
676}
677function stroke(r, g, b, a) {
678 /* Sets the current stroke color.
679 */

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…