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:

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)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.