Here are the two pictures we are going to average:
![]() |
![]() |
Here is the code we will use (Note that for this code to work effectively the original images must be exactly the same size):

And here is the result of averaging the RGB values of the two pictures
(Fire and Ice):
Here are some more examples:
![]() |
![]() |
![]() |
|
|
|
![]() |
|
|
|
|
|
|
![]() |








