iOS Question Color Gradient

ivanomonti

Well-Known Member
Licensed User
Longtime User
How can I create gradien colors as attached image.
 

Attachments

  • 10628464_796071790456929_8250515526264262305_n.jpg
    10628464_796071790456929_8250515526264262305_n.jpg
    39.8 KB · Views: 259

ivanomonti

Well-Known Member
Licensed User
Longtime User
I am not satisfied, there is no angle or gradient type

B4X:
Sub gradient(av As Page)
    Dim cv As Canvas
    Dim pane As Panel
    pane.Initialize("")
    pane.Color = Colors.White
    av.RootPanel.AddView(pane,0,0,100%x,100%y)
    Dim Colours(3) As  Int
    Colours(0) = Colors.Green
    Colours(1) = Colors.White
    Colours(2) = Colors.Blue
    cv.Initialize(pane)
    cv.FillGradient(0,0,100%x,100%y,Colours)
    cv.ro
    cv.Refresh
End Sub
 
Upvote 0
Top