Miscellaneous

Here are presented the trajectories computing function.

trajectories

void compute_trajectory(Pixel positions[], Line trajectory, uint32_t steps)
Parameters:
  • positions – An array from type Pixel from size steps.
  • trajectory – A line on where settings the pixels along.
  • steps – The number of pixel to set along the line trajectory.
Return type:

void

This function feed the array positions[steps] by computing the number of pixels steps along the Line line at equal distance.

Warning

You can declare the positions array or allocated it dynamicaly:

uint32_t steps = 32 ;

Pixel positions[steps] ;

/** Or **/

Pixel *positions = (Pixel *) calloc((ssize_t) steps, sizeof(Pixel)) ;

Note

Guideline animation.

After executing this function you get an array of pixels with which you can implement an animation with the array of pixels as guideline.

Table Of Contents

Previous topic

Getters functions

Next topic

Utils

This Page