Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gype.UI.Brush brush = Gype.UI.Brush.LinearGradientBrush(
- target,
- new Gype.UI.LinearGradientDescription()
- {
- GradientEnd = new SlimDX.Vector2(200, 200),
- GradientStart = new SlimDX.Vector2(0, 0),
- GradientSize = new SlimDX.Vector2(200, 200),
- Stops = new Gype.UI.GradientStop[]
- {
- new Gype.UI.GradientStop()
- {
- Distance = 0,
- Color = System.Drawing.Color.Red,
- },
- new Gype.UI.GradientStop()
- {
- Distance = 0.4f,
- Color = System.Drawing.Color.Blue
- },
- new Gype.UI.GradientStop()
- {
- Distance = 0.6f,
- Color = System.Drawing.Color.Blue
- },
- new Gype.UI.GradientStop()
- {
- Distance = 1,
- Color = System.Drawing.Color.Green,
- }
- }
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment