Clear Graphic Effects | |
clear graphic effects | |
Category | Looks |
Type | Stack |
Introduced in | 25Feb04 (0.x) |
The Clear Graphic Effects block is a Looks block and a stack block. This block resets all 7 graphic effects (color, fisheye, whirl, pixelate, mosaic, brightness and ghost) on its sprite.
Example Uses
As this block resets all effects on its sprite, the most common use for this block is used whenever all of a sprite's effects must be reset.
Some common uses for this block are:
- Reseting the graphic effect of a sprite when no longer being interacted with
forever if <touching (mouse-pointer v)?> then set [color v] effect to (25) else clear graphic effects end end
- When a sprite has to reset itself, going to the X and Y position and clearing its effects
when I receive [reset v] go to x:(0) y:(0) clear graphic effects
Workaround
- Main article: List of Block Workarounds
This block can be replicated with the following code, although it is usually somewhat impractical to do so and is a bit slower:
set [color v] effect to (0) set [fisheye v] effect to (0) set [whirl v] effect to (0) set [pixelate v] effect to (0) set [mosaic v] effect to (0) set [brightness v] effect to (0) set [ghost v] effect to (0)
For sprites |
Say () for () Seconds • Say () • Think () for () Seconds • Think () • Switch Costume to () • Next Costume • Switch Backdrop to () • Next Backdrop • Change Size by () • Set Size to ()% • Change () Effect by () • Set () Effect to () • Clear Graphic Effects • Show • Hide • Go to () Layer • Go () () Layers • Costume () • Backdrop () • Size
|
For the Stage |