Bézier colormap generator should default to 256 levels and 3 RGB channels.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_027(id, nfail) use forcolormap_utils, only: bezier integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "bezier: default levels=256, shape (256,3)" logical :: ok integer :: colors(2,3) integer, allocatable :: map(:,:) colors(1,:) = [ 0, 0, 0 ] colors(2,:) = [ 255, 255, 255 ] map = bezier(colors) ok = (size(map,1) == 256) .and. (size(map,2) == 3) call report_test(name, ok, id, nfail) end subroutine test_027