set_hsl Subroutine

private pure elemental subroutine set_hsl(this, h, s, l)

Type Bound

color

Arguments

Type IntentOptional Attributes Name
class(color), intent(inout) :: this
real(kind=rk), intent(in) :: h
real(kind=rk), intent(in) :: s
real(kind=rk), intent(in) :: l

Called by

proc~~set_hsl~~CalledByGraph proc~set_hsl color%set_hsl proc~set~2 color%set proc~set~2->proc~set_hsl program~demo_color demo_color program~demo_color->proc~set~2 program~example26 example26 program~example26->proc~set~2 program~example27 example27 program~example27->proc~set~2 program~example28 example28 program~example28->proc~set~2

Source Code

   elemental pure subroutine set_hsl(this, h, s, l)
      class(color), intent(inout) :: this
      real(rk),    intent(in)    :: h, s, l

      this%hl = h
      this%sl = s
      this%vl = l
   end subroutine set_hsl