MCPcopy Create free account
hub / github.com/benfry/processing4 / setTexture

Method setTexture

core/src/processing/core/PShape.java:2520–2527  ·  view source on GitHub ↗
(PImage tex)

Source from the content-addressed store, hash-verified

2518
2519
2520 public void setTexture(PImage tex) {
2521 if (openShape) {
2522 PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setTexture()");
2523 return;
2524 }
2525
2526 image = tex;
2527 }
2528
2529
2530 public int getFill(int index) {

Callers 2

loadFileSystemImageMethod · 0.95
loadBase64ImageMethod · 0.95

Calls 1

showWarningMethod · 0.95

Tested by

no test coverage detected