i am controlling the hue and saturation of the backcolor of the form with scrollbars:
Private Sub tbHUE_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbHue.Scroll
Dim r, g, b As Integer
HSVtoRGB(r, g, b, tbHue.Value, tbSaturation.Value / 50, 255)
Form1.BackColor = Color.FromArgb(r, g, b)
Label1.Text = tbHue.Value
End Sub
Private Sub tbsaturation_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbSaturation.Scroll
Dim r, g, b As Integer
HSVtoRGB(r, g, b, tbHue.Value, tbSaturation.Value / 50, 255)
Form1.BackColor = Color.FromArgb(r, g, b)
Label2.Text = tbSaturation.Value
End Sub
i would like to know what is the purpose of dividing by 50?