I was studying "Bitwise NOT", and just had this thought about what impact that would have on color when applied to each of the RGB values.
Is there any related "color theory" that discusses anything similar to this sample code I just wrote?
Is there any related "color theory" that discusses anything similar to this sample code I just wrote?
Code: (Select All)
screen _newimage(600,400,32)
dim as _unsigned _byte r,g,b,r2,g2,b2
again:
r = int(rnd*256)
g = int(rnd*256)
b = int(rnd*256)
r2 = not r
g2 = not g
b2 = not b
line (0, 0)-(200, 200),_rgb32(r,g,b),BF
line (300, 0)-(500, 200),_rgb32(r2,g2,b2),BF
_delay 0.5
goto again