MCPcopy Index your code
hub / github.com/processing/p5.js / stroke

Method stroke

src/core/p5.Renderer.js:352–359  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

350 }
351
352 stroke(...args) {
353 if (args.length === 0) {
354 return this.states.strokeColor;
355 }
356 this.states.setValue('strokeSet', true);
357 this.states.setValue('strokeColor', this._pInst.color(...args));
358 this.updateShapeVertexProperties();
359 }
360
361 noStroke() {
362 this.states.setValue('strokeColor', null);

Callers 15

drawLineFunction · 0.45
setupFunction · 0.45
rendering.jsFile · 0.45
drawXFunction · 0.45
structure.jsFile · 0.45
setting.jsFile · 0.45
drawCircleFunction · 0.45
drawShapeFunction · 0.45
p5.Geometry.jsFile · 0.45
p5.RendererGL.jsFile · 0.45
getColorsFunction · 0.45
outputs.jsFile · 0.45

Calls 2

setValueMethod · 0.45

Tested by

no test coverage detected