ChimeraX docs icon

Command: crossfade

Usage:
crossfadeframes ]

The crossfade command fades the current display image over a specified number of subsequent frames, default 30. Each pixel is simply interpolated linearly, with the fractional contribution from the initial image decreasing as the contribution from the other frame increases. Motions are not interpolated; gradually changing the orientation or position of some object instead requires using frame arguments in the commands performing those changes (move, turn, view, etc.). See also: making movies

Note: If used to make a movie with image size (width and height in pixels) different than the graphics window, crossfade may cause visual artifacts such as flashing or distortion – the command movie crossfade should be used instead.

Examples:

crossfade; hide ligand; wait 30
crossfade; show ligand; wait 30
crossfade 60; style ligand sphere; wait 60
crossfade 60; set bg light blue; wait 60
crossfade 100; light full; wait 100

UCSF Resource for Biocomputing, Visualization, and Informatics / May 2022