A dash pattern, as OpenGL's line stipple (OpenFrames' setPattern): each
bit of the 16-bit pattern (bit 0 first; z'FFFF', the default, is
solid) covers factor window units, along the whole curve (the dashes
run on across its points). The dashes' length on screen is kept within
0.7 to 1.4 times the pattern's (see shaders/line.vert).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CurveArtist), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | factor |
window units per bit (>= 1), 16 bits (z'FFFF': solid) |
||
| integer, | intent(in) | :: | pattern |
window units per bit (>= 1), 16 bits (z'FFFF': solid) |
subroutine curve_set_pattern(self, factor, pattern) class(CurveArtist), intent(inout) :: self integer, intent(in) :: factor, pattern !! window units per bit (>= 1), 16 bits (z'FFFF': solid) self%pattern_factor = max(1, factor) self%pattern_ = iand(pattern, int(z'FFFF')) call curve_style(self) end subroutine curve_set_pattern