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

Function _ctx_fill

pattern/canvas.js:929–939  ·  view source on GitHub ↗
(fill)

Source from the content-addressed store, hash-verified

927// Wrappers for _ctx.fill() and _ctx.stroke(), only calling them when necessary.
928
929function _ctx_fill(fill) {
930 if (fill && (fill.a > 0 || fill.clr1)) {
931 // Ignore transparent colors.
932 // Avoid switching _ctx.fillStyle() - we can gain up to 5fps:
933 var f = fill._get();
934 if (_ctx.state._fill != f) {
935 _ctx.fillStyle = _ctx.state._fill = f;
936 }
937 _ctx.fill();
938 }
939}
940
941function _ctx_stroke(stroke, strokewidth, strokestyle, linecap) {
942 if (stroke && stroke.a > 0 && strokewidth > 0) {

Callers 4

backgroundFunction · 0.85
canvas.jsFile · 0.85
rectFunction · 0.85
triangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…