why doesn't my Vector Drawing show up? [solved]

Just starting out? Need help? Post your questions and find answers here.
eck49
Enthusiast
Enthusiast
Posts: 153
Joined: Sat Nov 14, 2020 10:08 pm
Location: England

why doesn't my Vector Drawing show up? [solved]

Post by eck49 »

Having spent an hour trying to solve this, this post might save an hour of someone else's time....

Of course there can be many other reasons, but in this case....

The answer was that I had supplied a colour to the SourceVectorColor procedure in RGB form, not RGBA.
Therefore the opacity byte was 0, so the drawing was there but invisible.

The colour parameter was a variable.
The value had been set and used elsewhere in RGB form.

All the best solutions are obvious.... after they have been found.
Ubuntu 22.04 64-bit
Purebasic 6.00 (as of 5 Sep 2022)
(native tongue: English)
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: why doesn't my Vector Drawing show up? [solved]

Post by Saki »

VectorSourceColor(#Red|$FF000000)

This set the alpha channel to 255 = full visible
地球上の平和
Post Reply