Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Is there a way to get a color from a backdrop or costume?
- Asherlr23
- Scratcher
1 post
Is there a way to get a color from a backdrop or costume?
I was working a triangles effect thing in one of my remixes of osu!js (See what I mean by by triangles here: https://scratch.mit.edu/projects/538211983/) And I wanted to add a option to color the triangles in a similar way as the background. Is there a way to do that? Thanks.
if <[ERROR: File "Asherlr23.dll" not found] = [true]> then
PANIC
end
- 1010101O1jr
- Scratcher
27 posts
Is there a way to get a color from a backdrop or costume?
Try turning all backgound and the triangle to white (for color effect) it will probably work
Then make a variable called “back gound effect”
Now do the following code
Next for the triangle you need to set the color effect to the backgound effect variable
Then make a variable called “back gound effect”
Now do the following code
when green flag clickedThe backdrop code
set [ backgoung effect] to [50]
set [ color] effect to ((backgound effect))
Next for the triangle you need to set the color effect to the backgound effect variable
- Discussion Forums
- » Help with Scripts
- » Is there a way to get a color from a backdrop or costume?