private function new_ribbon_artist(traj, color) result(a)
A ribbon artist for traj (optional), of color color ([r, g, b], alpha
unchanged, or [r, g, b, a]; default white, alpha 0.25), from the frame's
origin to the positions (see set_start_x_data, ... for others).
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
function new_ribbon_artist(traj,color)result(a)type(Trajectory),intent(in),target,optional::traj!! the trajectory to draw (not owned)real(wp),intent(in),optional::color(:)!! [r, g, b] or [r, g, b, a] (0 to 1; default white, alpha 0.25)type(RibbonArtist)::aa%end_=position_sources(3)if(present(traj))call a%set_trajectory(traj)if(present(color))call set_rgba(a%color_,color)end function new_ribbon_artist