public void Render() { if (_paintable.strokeColor == null) { return; } Matrix2x3 _matrix = transformMatrix; float _width = _paintable.strokeWidth; _render.StrokeLineCap = _paintable.strokeLineCap; Vector2 p1 = _matrix.Transform(new Vector2(_x1.value, _y1.value)); Vector2 p2 = _matrix.Transform(new Vector2(_x2.value, _y2.value)); _render.Line(p1, p2, _paintable.strokeColor, _width); }
public void Render() { if (_paintable.strokeColor == null) { return; } Matrix2x3 _matrix = transformMatrix; float _width = _paintable.strokeWidth; _render.SetStrokeLineCap(_paintable.strokeLineCap); float tx1 = _x1.value; float ty1 = _y1.value; float tx2 = _x2.value; float ty2 = _y2.value; Vector2 p1 = new Vector2(tx1, ty1); Vector2 p2 = new Vector2(tx2, ty2); p1 = _matrix.Transform(p1); p2 = _matrix.Transform(p2); _render.Line(p1, p2, _paintable.strokeColor, _width); }