Advertisement
Guest User

Untitled

a guest
May 27th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.74 KB | None | 0 0
  1.         if (this.px2 != -1)
  2.         {
  3.             Vertex[] line =
  4.             [
  5.                 Vertex(Vector2f(this.px1, this.py1), Color(250, 100, 13)),
  6.                 Vertex(Vector2f(x1, y1), Color(250, 100, 13))
  7.             ];
  8.             Vertex[] line2 =
  9.             [
  10.                 Vertex(Vector2f(this.px2, this.py2), Color(100, 13, 250)),
  11.                 Vertex(Vector2f(x2, y2), Color(100, 13, 250))
  12.             ];
  13.             this.hist ~= line;
  14.             this.hist ~= line2;
  15.  
  16.             foreach (Vertex[] dLine; this.hist)
  17.             {
  18.                 this.window.draw(dLine, PrimitiveType.Lines);
  19.             }
  20.         }
  21.  
  22.         this.px2 = x2;
  23.         this.py2 = y2;
  24.         this.px1 = x1;
  25.         this.py1 = y1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement