QB64 and Qbasic handles color palette differently...by Dav (no login)...when using graphics command. The following produces different color results in Qbasic and QB64: '============== SCREEEN 12 FOR x% = 0 to 256 PSET (x%, 32), x% NEXT '============== As you know, SCREEN 12 has only 16 color attributes (0 to 15). In Qbasic, stating above 15 will always output the highest color in the pallete (15). The above example show a line, first the 0-15 colors, the rest of the line is all color 15 (any color stated above 15 stays at 15). Like Qbasic is doing IF color > 15 then color = 15. In QB64, the palette is cycled when stating above 15 (so 16 = 0, 17 = 1, and so on). In the above example, QB64 will show a long line with the colors cycled, unlike Qbasic. This behavior is the same in CIRCLE, PAINT, and all color handling statements I've tested. - Dav from IP address 75.181.134.25 |
| Response Title | Author and Date |
| * Btw, it's just an Info post, not a complaint. I kind of like the new way. | Dav on Apr 17 |
| Well, perhaps you used too many E's in SCREEN 12 | on Apr 17 |
| * Oops. (Those HD programming commercials are getting to me) | Dav on Apr 18 |