Home » Community » Newbie corner » Example: TextToSvgPath - Draw + Paint (Unified Draw-Paint Call - cannot call 'Color')
Example: TextToSvgPath - Draw + Paint [message #59141] |
Wed, 09 November 2022 13:44  |
UltimatePP
Messages: 3 Registered: November 2022
|
Junior Member |
|
|
Hi folks, absolute newbie here.
I'm picking apart the example projects while combing through the documentation, this is the best way for me to learn, but I've exhausted all options and feel calling on the forum is my best bet.
Within the example project TextToSvgPath's "main.cpp", line 6 and 7 call the colour for the background and text, respectively. I've gone through every module under both Draw and Paint to see if I could find, at the very least, the colours described. I eventually found them listed in two (I think) places last night, one being "Draw.h" where they are listed. They are mentioned in the documentation for Draw as well, but I can't seem to find the referenced RGB values to adjust them. Painter lists colour values in "SvgUtil.cpp" along with RGB values, but the colour is not being fetched from there so I cannot make additions or adjustments to that list for use.
In this instance where Draw/Paint is used, how would I call a specific RGB value as opposed to S/Black or S/Blue, for example? What would the syntax be? I've tried calling Color, but it seems that Color itself is not used to establish RGB for Draw/Paint in the fashion I assumed it would (not a call operator).
Thanks in advance for any response, I'll definitely keep tinkering in the meantime.
|
|
|
Goto Forum:
Current Time: Fri Apr 25 17:16:10 CEST 2025
Total time taken to generate the page: 0.00912 seconds
|