ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
digital_rain_column_t Struct Reference

digital rain column keeps the values that move through the subsystem: time_offset, speed_multiplier, phase_offset. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself. More...

#include <include/ascii-chat/video/anim/digital_rain.h>

Data Fields

float time_offset
 Random time offset for this column (prevents synchronization).
float speed_multiplier
 Speed variation multiplier (0.5 to 1.0).
float phase_offset
 Phase offset for wobble variation.

Detailed Description

digital rain column keeps the values that move through the subsystem: time_offset, speed_multiplier, phase_offset. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself.

For digital rain, this is the live record that ties animation, animation_timestamp_ns, columns, num_columns together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

Digital rain column state

Tracks the state of a single column in the digital rain effect. Each column has independent timing and speed characteristics.

Definition at line 62 of file digital_rain.h.

Field Documentation

◆ phase_offset

float digital_rain_column_t::phase_offset

Phase offset for wobble variation.

Definition at line 65 of file digital_rain.h.

Referenced by digital_rain_init().

◆ speed_multiplier

float digital_rain_column_t::speed_multiplier

Speed variation multiplier (0.5 to 1.0).

Definition at line 64 of file digital_rain.h.

Referenced by digital_rain_init().

◆ time_offset

float digital_rain_column_t::time_offset

Random time offset for this column (prevents synchronization).

Definition at line 63 of file digital_rain.h.

Referenced by digital_rain_init().


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