A frame named name, with decorations of color color ([r, g, b] or
[r, g, b, a], 0 to 1; default white, 90% opaque).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
the frame's name (shown by its name label) |
||
| real(kind=wp), | intent(in), | optional | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1; default white, 90% opaque) |
function new_reference_frame(name, color) result(frame) character(len=*), intent(in) :: name !! the frame's name (shown by its name label) real(wp), intent(in), optional :: color(:) !! [r, g, b] or [r, g, b, a] (0 to 1; default white, 90% opaque) type(ReferenceFrame) :: frame frame%name_ = name if (present(color)) call frame%set_color(color) end function new_reference_frame