Would this "RbgaPset" be a way around not having _RGBA ? - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: QBJS, BAM, and Other BASICs (https://staging.qb64phoenix.com/forumdisplay.php?fid=50) +--- Thread: Would this "RbgaPset" be a way around not having _RGBA ? (/showthread.php?tid=1930) |
Would this "RbgaPset" be a way around not having _RGBA ? - CharlieJV - 08-22-2023 Implementing _RGBA in BAM would be, I think, I real nightmare. Instead, I'm thinking better to set an include library with this "RgbaPset" function. Question is: am I right in thinking this yields the same as what _RGBA would do color-wise ? Code: (Select All) SUB RgbaPset(x,y,r,g,b,a) RE: Would this "RbgaPset" be a way around not having _RGBA ? - bplus - 08-22-2023 (08-22-2023, 06:16 PM)CharlieJV Wrote: Implementing _RGBA in BAM would be, I think, I real nightmare. Yeah I think I translated your code to QB64 and compared your method, Charlie, with normal way of drawing an Alpha rectangle in QB64. No blinking between 2 methods demos that it works. I tried a few colors too. Code: (Select All) Screen _NewImage(800, 600, 32) Nice one, assuming I did it correctly. RE: Would this "RbgaPset" be a way around not having _RGBA ? - CharlieJV - 08-22-2023 Arg! I was in hockey puck mode and forgot to "rgb" the color for the PSET statement in the sub. This works: Code: (Select All) ' This only works with BAM modes 23 to 27 RE: Would this "RbgaPset" be a way around not having _RGBA ? - CharlieJV - 08-22-2023 And here it is: https://www.reddit.com/r/BASICAnywhereMachine/comments/15yle1r/prototyping_an_rgbapset_subroutine/ BTW: Truth be told, I'm on this because I really want to get @Dav 's Space Orbs working in BAM. Without that alpha-blending, what I did get working is pretty psychedelic. RE: Would this "RbgaPset" be a way around not having _RGBA ? - CharlieJV - 08-24-2023 Another little test program. After the screen fills up with a bunch of wee orbs, half of the screen has a gradient overlay of alpha-blended (?) blue: |