Identifying colour attributes with negative numbers - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2) +--- Thread: Identifying colour attributes with negative numbers (/showthread.php?tid=1424) |
Identifying colour attributes with negative numbers - CharlieJV - 01-28-2023 Something QB64 does just like QB45, and I like it. I've got somebody in another forum wondering why anybody would ever want that. I'm thinking why wouldn't you want the ability to cycle through colour attributes in either direction and be able to loop around to the other side when you reach an end? I can't think off the top of my head how I would use it, but it instantly struck me as "that can be really frigging useful," especially when setting up custom palettes that have nice colour transitions through the circle of colours, regardless of direction. Just bringing that up here in case folk were unaware of that, or in case anybody has a ready example in their back pocket, or in case anybody has thoughts one way of the other. RE: Identifying colour attributes with negative numbers - CharlieJV - 01-28-2023 Oops, I thought that was something that worked with anything related to colours. That works for the colour attribute specified in PSET, but not with the COLOR statement. Sample code: Code: (Select All) 1 SCREEN 13 |