Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.px2 != -1)
- {
- Vertex[] line =
- [
- Vertex(Vector2f(this.px1, this.py1), Color(250, 100, 13)),
- Vertex(Vector2f(x1, y1), Color(250, 100, 13))
- ];
- Vertex[] line2 =
- [
- Vertex(Vector2f(this.px2, this.py2), Color(100, 13, 250)),
- Vertex(Vector2f(x2, y2), Color(100, 13, 250))
- ];
- this.hist ~= line;
- this.hist ~= line2;
- foreach (Vertex[] dLine; this.hist)
- {
- this.window.draw(dLine, PrimitiveType.Lines);
- }
- }
- this.px2 = x2;
- this.py2 = y2;
- this.px1 = x1;
- this.py1 = y1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement