Creepy-simulation
 
Loading...
Searching...
No Matches
view.view.DrawSparkle Class Reference

Public Member Functions

 __init__ (self, points)
 
 __call__ (self, drawer, scale=2)
 

Public Attributes

 sparkle_frame_index
 
 points
 
 sparkle_timer
 

Protected Member Functions

 _update_frame (self, frame_count)
 

Detailed Description

@class DrawSparkle
@brief Handles the animation of sparkles.

The DrawSparkle class manages the rendering and frame updates for sparkle animations.

Constructor & Destructor Documentation

◆ __init__()

view.view.DrawSparkle.__init__ (   self,
  points 
)
Initializes a DrawSparkle object.

@param points: A list of points where the sparkles occur.

Member Function Documentation

◆ __call__()

view.view.DrawSparkle.__call__ (   self,
  drawer,
  scale = 2 
)
Renders the sparkle frames at the specified points.

@param drawer: The object responsible for rendering.
@param scale: Scaling factor for the sparkle.
@return: True if the animation is ongoing, False if it is finished.

◆ _update_frame()

view.view.DrawSparkle._update_frame (   self,
  frame_count 
)
protected
Updates the sparkle frame based on the elapsed time.

@param frame_count: The total number of frames in the sparkle animation.
@return: True if the animation has completed, otherwise False.

Member Data Documentation

◆ points

view.view.DrawSparkle.points

◆ sparkle_frame_index

view.view.DrawSparkle.sparkle_frame_index

◆ sparkle_timer

view.view.DrawSparkle.sparkle_timer

The documentation for this class was generated from the following file: