- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 19
draw_line_width_color
        CryoEagle edited this page Jan 13, 2019 
        ·
        1 revision
      
    Draw line with width option and color option
draw_line_width_color(pos1, pos2, width, c1, c2, c3, c4, angle)| Argument | Description | 
|---|---|
| Vector2pos1 | First position | 
| Vector2pos2 | Second position | 
| intwidth | Thickness | 
| Colorc1 | First color | 
| Colorc2 | Second color | 
| Colorc3 | Third color | 
| Colorc4 | Fourth color | 
| doubleangle | Rotation of line | 
Returns: void
This function draws line, it's like draw_line_width(); but this have colors options that can make gradient effect.
draw_line_width_color(new Vector2(Position.X,Position.Y), new Vector2(Position.X+100,Position.Y), 5, Microsoft.Xna.Framework.Color.Green, Microsoft.Xna.Framework.Color.Pink, Microsoft.Xna.Framework.Color.Gold, Microsoft.Xna.Framework.Color.Navy );Above code will draw bold line with gradient effect.
Back to Shapes