Cromon

Program.cs

Oct 14th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.34 KB | None | 0 0
  1.             Gype.UI.Brush brush = Gype.UI.Brush.LinearGradientBrush(
  2.                 target,
  3.                 new Gype.UI.LinearGradientDescription()
  4.                 {
  5.                     GradientEnd = new SlimDX.Vector2(200, 200),
  6.                     GradientStart = new SlimDX.Vector2(0, 0),
  7.                     GradientSize = new SlimDX.Vector2(200, 200),
  8.                     Stops = new Gype.UI.GradientStop[]
  9.                     {
  10.                         new Gype.UI.GradientStop()
  11.                         {
  12.                             Distance = 0,
  13.                             Color = System.Drawing.Color.Red,
  14.                         },
  15.  
  16.                         new Gype.UI.GradientStop()
  17.                         {
  18.                             Distance = 0.4f,
  19.                             Color = System.Drawing.Color.Blue
  20.                         },
  21.  
  22.                         new Gype.UI.GradientStop()
  23.                         {
  24.                             Distance = 0.6f,
  25.                             Color = System.Drawing.Color.Blue
  26.                         },
  27.  
  28.                         new Gype.UI.GradientStop()
  29.                         {
  30.                             Distance = 1,
  31.                             Color = System.Drawing.Color.Green,
  32.                         }
  33.                     }
  34.                 }
  35.                 );
Advertisement
Add Comment
Please, Sign In to add comment