Adjusted the code to derived the effect frame color.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>