Discuss Scratch

MAGMA-TOONS
Scratcher
1 post

Inverting colors

How do you invert colors with variables? I want the walls to be the opposite of the player and I tried this
forever
change [color] effect by (((color) - (255)))
end
-TUB-
Scratcher
100+ posts

Inverting colors

Try this:

set [color v] effect to ((100) + (color))
loadingwaitamin
Scratcher
4 posts

Inverting colors

-TUB- wrote:

Try this:

set [color v] effect to ((100) + (color))

If “color” is a variable, then “color” could be anything. So there might be another way, like finding and testing.

For example:

set [color v] to [any number]

set [color v] effect to (color)

Powered by DjangoBB