Compare commits
1 Commits
34e652cb5e
...
f56c5dd389
Author | SHA1 | Date | |
---|---|---|---|
f56c5dd389 |
@ -375,12 +375,12 @@ func (r *Renderer) Line(p, q geom.PointF32, color color.Color, thickness float32
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Renderer) Location() geom.Point {
|
func (r *Renderer) Location() geom.Point {
|
||||||
x, y := r.renderer.GetPosition()
|
x, y := r.window.GetPosition()
|
||||||
return geom.Pt(int(x), int(y))
|
return geom.Pt(int(x), int(y))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Renderer) Move(to geom.Point) {
|
func (r *Renderer) Move(to geom.Point) {
|
||||||
r.renderer.SetPosition(int32(to.X), int32(to.Y))
|
r.window.SetPosition(int32(to.X), int32(to.Y))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Renderer) Rectangle(rect geom.RectangleF32, c color.Color, thickness float32) {
|
func (r *Renderer) Rectangle(rect geom.RectangleF32, c color.Color, thickness float32) {
|
||||||
|
Loading…
Reference in New Issue
Block a user