jhylands

Draw circle color

Aug 13th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.09 KB | None | 0 0
  1. 'Calculating aditional colour
  2.             If tempobject.mytype(0) = True And tempobject.mytype(1) = False Then 'green
  3.                 g = tempobject.size.G + 10
  4.                 'calcilate if blast is needed to reduce green to 255
  5.                 If g < 256 Then
  6.                     tempobject.size.G = g
  7.                 Else
  8.                     'blast
  9.                 End If
  10.             ElseIf tempobject.mytype(0) = True And tempobject.mytype(1) = True Then 'blue
  11.                 b = tempobject.size.B + 10
  12.                 'calculate if blast is needed to reduce blue to 255
  13.                 If b < 256 Then
  14.                     tempobject.size.B = b
  15.                 Else
  16.                     'blast
  17.                 End If
  18.             ElseIf tempobject.mytype(0) = False And tempobject.mytype(1) = True Then 'red
  19.                 r = tempobject.size.R + 10
  20.                 'calculate if blast is needed to reduce red to 255
  21.                 If r < 256 Then
  22.                     tempobject.size.R = r
  23.                 Else
  24.                     'blast
  25.                 End If
  26.             End If
  27.             DrawIt(tempobject)
Advertisement
Add Comment
Please, Sign In to add comment