set_rgb Subroutine

private pure elemental subroutine set_rgb(this, r, g, b)

Type Bound

color

Arguments

Type IntentOptional Attributes Name
class(color), intent(inout) :: this
integer(kind=ik), intent(in) :: r
integer(kind=ik), intent(in) :: g
integer(kind=ik), intent(in) :: b

Called by

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

Source Code

   elemental pure subroutine set_rgb(this, r, g, b)
      class(color), intent(inout) :: this
      integer(ik),  intent(in)    :: r, g, b

      this%r = r
      this%g = g
      this%b = b
   end subroutine set_rgb