Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

5. Adding effects

Yann LE GOFF edited this page Aug 17, 2022 · 2 revisions

This section will present the effects of Cade.

A shape in Cade can have multiple effects.

Ther is 7 ways for interactions between a Shape and his effects :

  • initWith : when the effect is added to the shape;
  • updateWith : each time the shape compute his bounds;
  • releaseWith : when the effect is removed of the shape;
  • decorateBufferNativeSurface : when the bufferedImage of the shape is refresh;
  • preRenderShape : before the rendering of the shape;
  • renderShape : instead of render the shape. Do not forget to render the shape if necessary;
  • postRenderShape ; after the rendering of the shape.