A curve artist for traj (optional), drawn in color color ([r, g, b]
or [r, g, b, a]; default white) and width (window units; default 1).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Trajectory), | intent(in), | optional, | target | :: | traj |
the trajectory to draw (not owned) |
| real(kind=wp), | intent(in), | optional | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1); width (window units, default 1) |
|
| real(kind=wp), | intent(in), | optional | :: | width |
[r, g, b] or [r, g, b, a] (0 to 1); width (window units, default 1) |
function new_curve_artist(traj, color, width) result(a) type(Trajectory), intent(in), target, optional :: traj !! the trajectory to draw (not owned) real(wp), intent(in), optional :: color(:), width !! [r, g, b] or [r, g, b, a] (0 to 1); width (window units, default 1) type(CurveArtist) :: a a%sources_ = position_sources(3) if (present(traj)) call a%set_trajectory(traj) if (present(color)) call a%set_color(color) if (present(width)) a%width_ = width end function new_curve_artist