04-08-2017, 12:38 PM
The docs for hdi::core::ArtColor::pattern() says it returns "a new PatternStyle struct for the target ArtColor". It truly means "new". The returned object is created anew every time you call the method. As such, trying to set new values for its members will not be retained through subsequent calls, and the new values will have no effect on the actual pattern art at all.
If you want to change the actual pattern art, create a new ArtColor object from a PatternStyle object via the appropriate constructor. Then apply said ArtColor object to the fill or stroke of the art's path style.
If you want to change the actual pattern art, create a new ArtColor object from a PatternStyle object via the appropriate constructor. Then apply said ArtColor object to the fill or stroke of the art's path style.