In one application of these palette effects, first the paladd components are added to the afterimage palette, then the components are multiplied by the palmul multipliers. These parameters specify palette effects that are applied repeatedly to successive frames in the afterimage. Paladd = add_r, add_g, add_b (int) See below. Valid values are 0-256 for palcolor, 0-255 for palbright and palpostbright components, and any non-negative integer for palcontrast components. For instance, if the red component of the character's palette is denoted pal_r, then the red component of the afterimage palette is given by ( pal_r + add_r) * mul_r / 256 + add2_r, assuming palcolor and palinvert are left at their default values. The value of palcolor ranges from 0 (greyscale) to 256 (normal color).
Afterwards, the palbright components are added to the corresponding component of the player's palette, then each component is multiplied by the corresponding palcontrast component divided by 256, then the palpostbright components are added to the result. First the color level is adjusted according to the palcolor value, then if invertall is non-zero the colors are inverted. These parameters determine palette effects to be applied to all afterimages. palpostbright = add2_r, add2_g, add2_b (int) palcontrast = mul_r, mul_g, mul_b (int) See below. palbright = add_r, add_g, add_b (int) See below. palinvertall = invertall (bool) See below. Maximum length is 60, and the default is 20. Of a better term) of afterimages displayed at one time. Increasing the length can increase the number and "age" (for lack Assuming constant values for timegap and framegap, Hold up to no_of_frames of the character's most recently savedįrames. length = no_of_frames (int) Sets the capacity of the frame history buffer. Required parameters: none Optional parameters: time = duration (int) Specifies the number of ticks that the afterimages should beÄisplayed for. The character's frames are stored in a history buffer, and are displayed after a delay as afterimages.