Invert color with a boolean variable and if-statements.