(PShape src, PShape dest)
| 1552 | |
| 1553 | // TODO unapproved |
| 1554 | static protected void copyStyles(PShape src, PShape dest) { |
| 1555 | dest.ellipseMode = src.ellipseMode; |
| 1556 | dest.rectMode = src.rectMode; |
| 1557 | |
| 1558 | if (src.stroke) { |
| 1559 | dest.stroke = true; |
| 1560 | dest.strokeColor = src.strokeColor; |
| 1561 | dest.strokeWeight = src.strokeWeight; |
| 1562 | dest.strokeCap = src.strokeCap; |
| 1563 | dest.strokeJoin = src.strokeJoin; |
| 1564 | } else { |
| 1565 | dest.stroke = false; |
| 1566 | } |
| 1567 | |
| 1568 | if (src.fill) { |
| 1569 | dest.fill = true; |
| 1570 | dest.fillColor = src.fillColor; |
| 1571 | } else { |
| 1572 | dest.fill = false; |
| 1573 | } |
| 1574 | } |
| 1575 | |
| 1576 | |
| 1577 | // TODO unapproved |
no outgoing calls
no test coverage detected