(PShape src, PShape dest)
| 1609 | |
| 1610 | // TODO unapproved |
| 1611 | static protected void copyStyles(PShape src, PShape dest) { |
| 1612 | dest.ellipseMode = src.ellipseMode; |
| 1613 | dest.rectMode = src.rectMode; |
| 1614 | |
| 1615 | if (src.stroke) { |
| 1616 | dest.stroke = true; |
| 1617 | dest.strokeColor = src.strokeColor; |
| 1618 | dest.strokeWeight = src.strokeWeight; |
| 1619 | dest.strokeCap = src.strokeCap; |
| 1620 | dest.strokeJoin = src.strokeJoin; |
| 1621 | } else { |
| 1622 | dest.stroke = false; |
| 1623 | } |
| 1624 | |
| 1625 | if (src.fill) { |
| 1626 | dest.fill = true; |
| 1627 | dest.fillColor = src.fillColor; |
| 1628 | } else { |
| 1629 | dest.fill = false; |
| 1630 | } |
| 1631 | } |
| 1632 | |
| 1633 | |
| 1634 | // TODO unapproved |
no outgoing calls
no test coverage detected