Skip to content

Commit 803455b

Browse files
authored
Fix typos (#26)
1 parent 9db53e6 commit 803455b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Graphics.jl is an [abstraction layer](https://en.wikipedia.org/wiki/Abstraction_layer)
44
for graphical operations in Julia.
55

6-
[![PkgEval](pkgeval-img)](pkgeval-url)
6+
[![PkgEval][pkgeval-img]][pkgeval-url]
77

88
See the documentation:
99
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaGraphics.github.io/Graphics.jl/stable)

src/Graphics.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
482482
end
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
544544
Scale the user-space x-axis and y-axis by `sx` and `sy` respectively. The
545545
scaling 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
893893
Add a sub-path circle to the current path. The `x` and `y` specify the center
894894
coordinate 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

Comments
 (0)