Apply a circular shift to the colormap (left is +, right is -)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Colormap), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | sh |
The shift |
pure subroutine shift(self, sh) class(Colormap), intent(inout) :: self integer, intent(in) :: sh !! The shift self%map(:,:) = cshift(self%map(:,:), sh) end subroutine shift