@@ -478,7 +478,7 @@ function _set_coordinates(gc::GraphicsContext, x, y, w, h, l, r, t, b)
478478 ycent = (t+ b)/ 2
479479 translate (gc, - xcent + (w/ 2 + x)/ xs, - ycent + (h/ 2 + y)/ ys)
480480 end
481- c
481+ gc
482482end
483483
484484"""
@@ -539,7 +539,7 @@ See also: [`rotate(p::Vec2, angle::Real, o::Vec2)`](@ref).
539539@mustimplement rotate (gc:: GraphicsContext , :: Real )
540540
541541"""
542- rotate (gc::GraphicsContext, sx, sy)
542+ scale (gc::GraphicsContext, sx, sy)
543543
544544Scale the user-space x-axis and y-axis by `sx` and `sy` respectively. The
545545scaling takes places after any existing transformation.
@@ -888,13 +888,13 @@ rectangle(gc::GraphicsContext, user::BoundingBox) =
888888 rectangle (gc, user. xmin, user. ymin, width (user), height (user))
889889
890890"""
891- circle(ctx ::GraphicsContext, x, y, r)
891+ circle(gc ::GraphicsContext, x, y, r)
892892
893893Add a sub-path circle to the current path. The `x` and `y` specify the center
894894coordinate of the circle, and the `r` specifies the radius.
895895"""
896- circle (ctx :: GraphicsContext , x:: Real , y:: Real , r:: Real ) =
897- arc (ctx , x, y, r, 0. , 2pi )
896+ circle (gc :: GraphicsContext , x:: Real , y:: Real , r:: Real ) =
897+ arc (gc , x, y, r, 0. , 2pi )
898898
899899"""
900900 polygon(gc::GraphicsContext, verts::Matrix, idx::Vector)
0 commit comments