Cromon

BrushCollection.cs

Oct 22nd, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1.             ButtonHighlight = Brush.RadialGradientBrush(target, new RadialGradientDescription()
  2.             {
  3.                 Center = new SlimDX.Vector2(50, 15),
  4.                 GradientSize = new SlimDX.Vector2(100, 30),
  5.                 HorizontalRadius = 50,
  6.                 VerticalRadius = 15,
  7.                 Stops = new GradientStop[]
  8.                 {
  9.                     new GradientStop() { Color = ConvertExt.ToColor(0xF0C6E2FF), Distance = 0.0f },
  10.                     new GradientStop() { Color = ConvertExt.ToColor(0xF0C6E2FF), Distance = 0.3f },
  11.                     new GradientStop() { Color = ConvertExt.ToColor(0xC6E2FF), Distance = 1.0f }
  12.                 }
  13.             }
  14.             );
Advertisement
Add Comment
Please, Sign In to add comment