(PGraphics g)
| 1387 | |
| 1388 | |
| 1389 | protected void styles(PGraphics g) { |
| 1390 | // should not be necessary because using only the int version of color |
| 1391 | //parent.colorMode(PConstants.RGB, 255); |
| 1392 | |
| 1393 | if (stroke) { |
| 1394 | g.stroke(strokeColor); |
| 1395 | g.strokeWeight(strokeWeight); |
| 1396 | g.strokeCap(strokeCap); |
| 1397 | g.strokeJoin(strokeJoin); |
| 1398 | } else { |
| 1399 | g.noStroke(); |
| 1400 | } |
| 1401 | |
| 1402 | if (fill) { |
| 1403 | //System.out.println("filling " + PApplet.hex(fillColor)); |
| 1404 | g.fill(fillColor); |
| 1405 | } else { |
| 1406 | g.noFill(); |
| 1407 | } |
| 1408 | } |
| 1409 | |
| 1410 | |
| 1411 | protected void post(PGraphics g) { |
no test coverage detected