<<< Home << Web < Arithmetic Top Bottom < Prev Next >

Image Arithmetic
AND and OR Example

AND and OR

Original #14, 12k

This image looked like one that might be useful for playing with the OR and AND functions. Once again, we'll just AND/OR this image with another image that consists of a single solid color.




AND with xffff7f

AND
Original
AND — xffff7f

The red and green components aren't affected. Any blue components larger than 127 have 128 subtracted from them. Any white pixels (255,255,255) become near yellow (255,255,127).




OR with x7f0000

AND
Original
OR — x7f0000

The green and blue components are not affected. All pixels get a red value of x7f (127) or xff (255).




OR with x5f1f1f

AND
Original
OR — x5f1f1f

All pixels get a red value of at least x5f (95) and green and blue values of at least x1f (31).


<<< Home << Web < Arithmetic Top Bottom < Prev Next >