Skip to content

Commit

Permalink
remove /tmp from more filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Jul 18, 2021
1 parent 8df436d commit 985b0c1
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/src/explanation/perfectpixels.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function draw()
setcolor(matrix[r, c])
box(table, r, c, :fillstroke)
end
end 400 400 "/tmp/alias-test.png"
end 400 400 "alias-test.png"
end
```

Expand Down
2 changes: 1 addition & 1 deletion docs/src/howto/clipping.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end

currentwidth = 500 # pts
currentheight = 500 # pts
Drawing(currentwidth, currentheight, "/tmp/clipping-tests.pdf")
Drawing(currentwidth, currentheight, "clipping-tests.pdf")
origin()
background("white")
setopacity(.4)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/howto/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ using Luxor
width, height = 4000, 4000
margin = 500

fname = "/tmp/test-image.pdf"
fname = "test-image.pdf"
Drawing(width, height, fname)
origin()
background("grey25")
Expand Down
4 changes: 2 additions & 2 deletions docs/src/tutorial/basictutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ Notice that this function doesn't define anything about what color it is, or whe
strokepath()
end
end
end 800 800 "/tmp/eggstravaganza.png"
end 800 800 "eggstravaganza.png"
```

```@setup te7
Expand Down Expand Up @@ -766,7 +766,7 @@ For a final experiment with our `egg` function, here's Luxor's [`offsetpoly`](@r
op = offsetpoly(pgon, i)
poly(op, :stroke, close=true)
end
end 800 800 "/tmp/spike-egg.png"
end 800 800 "spike-egg.png"
```

```@setup te9
Expand Down
2 changes: 1 addition & 1 deletion src/Boxmaptile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ using Luxor
sethue("white")
text(string(n), midpoint(bb[1], bb[2]), halign=:center)
end
end 400 400 "/tmp/boxmap.svg"
end 400 400 "boxmap.svg"
```
"""
function boxmap(A::Array, pt::Point, w, h)
Expand Down
4 changes: 2 additions & 2 deletions src/drawings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1106,9 +1106,9 @@ eachmatch(r"rgb.*?;", s) |> collect
text("JuliaMono: a monospaced font ", halign=:center)
text("with reasonable Unicode support", O + (0, 22), halign=:center)
end 500 150
write("/tmp/txt.svg", svgstring())
write("txt.svg", svgstring())
# minimize SVG
run(`svgo /tmp/txt.svg -o /tmp/txt-min.svg`)
run(`svgo txt.svg -o txt-min.svg`)
```
"""
function svgstring()
Expand Down
6 changes: 3 additions & 3 deletions src/images.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Read a PNG file.
This returns a image object suitable for placing on the current drawing with `placeimage()`.
You can access its `width` and `height` fields:
image = readpng("/tmp/test-image.png")
image = readpng("test-image.png")
w = image.width
h = image.height
"""
Expand Down Expand Up @@ -122,7 +122,7 @@ Placing an SVG file:
```
@draw begin
mycoollogo = readsvg("/tmp/mylogo.svg")
mycoollogo = readsvg("mylogo.svg")
placeimage(mycoollogo)
end
```
Expand Down Expand Up @@ -187,7 +187,7 @@ Place an image matrix on the drawing at `pos` with opacity/transparency `alpha`.
Use keyword `centered=true` to place the center of the image
at the position.
"""
function placeimage(buffer::AbstractMatrix{UInt32}, pt=O;
function placeimage(buffer::AbstractMatrix{UInt32}, pt=O;
alpha=1, centered=false)
if centered == true
w, h = size(buffer)
Expand Down
2 changes: 1 addition & 1 deletion test/point-inside-polygon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ preview()

end

point_inside_polygon("/tmp/point-inside-polygon.png")
point_inside_polygon("point-inside-polygon.png")

0 comments on commit 985b0c1

Please sign in to comment.