Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make Inverted Colors on Scratch:
- seuck
-
Scratcher
10 posts
How to make Inverted Colors on Scratch:
Here's how to make inverted colors on scratch.
Code samples:
Make sure to attach the following code samples to the When green flag Clicked.
The block to invert colors:
^This block of code basically sets the color filter to -100. Which is the number for inverting colors on scratch.
You can use it in an If statement.:
^This if statement detects if the backdrop number is equivalent to the given number (let it be 2). If the backdrop number is the given number, it will invert the backdrop. Otherwise the backdrop would be of normal color.
Images:
Before Inverted:

After Inverted:

Please send feedback as i'm only getting started on Scratch. I made this post just to send helpful code for people who want them.
Code samples:
Make sure to attach the following code samples to the When green flag Clicked.
The block to invert colors:
set [color v] effect to (-100)
^This block of code basically sets the color filter to -100. Which is the number for inverting colors on scratch.
You can use it in an If statement.:
if <(backdrop #)=(given number)> then
set [color v] effect to (-100)
else
set [color v] effect to (0)
end
^This if statement detects if the backdrop number is equivalent to the given number (let it be 2). If the backdrop number is the given number, it will invert the backdrop. Otherwise the backdrop would be of normal color.
Images:
Before Inverted:

After Inverted:

Please send feedback as i'm only getting started on Scratch. I made this post just to send helpful code for people who want them.
- Jlerpy
-
Scratcher
1000+ posts
How to make Inverted Colors on Scratch:
Nice. Although it doesn't flip lights and darks like a photo negative, which is what I'd been picturing.
- ExtraMental
-
Scratcher
100+ posts
How to make Inverted Colors on Scratch:
Help with scripts is not for tutorials, you could make a project about this instead.
- starlightsparker
-
Scratcher
1000+ posts
How to make Inverted Colors on Scratch:
Thanks, but, I suggest titling it “tutorial on how to make inverted colors” instead of “how to make inverted colors” cuz it looks like your asking a question
- seuck
-
Scratcher
10 posts
How to make Inverted Colors on Scratch:
Help with scripts is not for tutorials, you could make a project about this instead.Well it still helps people with scripts but making a project seems like a better idea (although it may not get many views and people will still not know how to invert colors)
- seuck
-
Scratcher
10 posts
How to make Inverted Colors on Scratch:
Help with scripts is not for tutorials, you could make a project about this instead.Can I ask, is there a forum for tutorials?
- 09878901234321
-
Scratcher
500+ posts
How to make Inverted Colors on Scratch:
No, there is not. Sorry! If someone has a question then you can answer it though. Make sure not to just go answer really old questions, and that you are answering unsolved, relevant questions.
- seuck
-
Scratcher
10 posts
How to make Inverted Colors on Scratch:
No, there is not. Sorry! If someone has a question then you can answer it though. Make sure not to just go answer really old questions, and that you are answering unsolved, relevant questions.kay thanks
- BestScratchCat78
-
Scratcher
1 post
How to make Inverted Colors on Scratch:
hey guys, so i uh, need to make a crosshair like in minecraft so when you look trough it things look inverted.. so how do i do that????? 









- N8_D_GR8_1
-
Scratcher
1000+ posts
How to make Inverted Colors on Scratch:
hey guys, so i uh, need to make a crosshair like in minecraft so when you look trough it things look inverted.. so how do i do that?????Please create a new forum topic for this. Thanks! https://scratch.mit.edu/discuss/7/topic/add/
- Discussion Forums
- » Help with Scripts
-
» How to make Inverted Colors on Scratch: