Skip to content

Commit 17346bf

Browse files
committed
format
1 parent 36c8d45 commit 17346bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/animations.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -916,17 +916,17 @@ end
916916
end
917917

918918
@testset "Grid with sinewave" begin
919-
function sine_curve(mapping, left, right; cleft = left, cright = right, xshift=0.0)
919+
function sine_curve(mapping, left, right; cleft = left, cright = right, xshift = 0.0)
920920
@JShape begin
921921
@scale_layer mapping begin
922922
x = collect(cleft:0.1:cright)
923923
y = sin.(x .+ xshift)
924924
circle.(Point.(x, y), 0.02, :fill)
925925
end
926-
end cleft = cleft cright = cright xshift=xshift
926+
end cleft = cleft cright = cright xshift = xshift
927927
end
928928

929-
function sine_wave_on_grid(xstart, xend, ystart, yend, fname; xshift=0.0)
929+
function sine_wave_on_grid(xstart, xend, ystart, yend, fname; xshift = 0.0)
930930
vid = Video(500, 500)
931931
nframes = 1
932932
Background(1:nframes, ground)
@@ -942,7 +942,7 @@ end
942942
cs = coordinate_system(mapping; fct = arrow, step_size_x = 1, step_size_y = 1)
943943

944944
cs_obj = Object(1:nframes, cs())
945-
sin_obj = Object(1:nframes, sine_curve(mapping, xstart, xend; xshift=xshift))
945+
sin_obj = Object(1:nframes, sine_curve(mapping, xstart, xend; xshift = xshift))
946946

947947
render(vid; tempdirectory = "images/", pathname = "")
948948

@@ -959,7 +959,7 @@ end
959959
sine_wave_on_grid(-5, -1, -1, 1, "right")
960960
sine_wave_on_grid(0.5, 2, 0.4, 1.2, "bottom")
961961
sine_wave_on_grid(-2, -0.5, -1.2, -0.4, "top")
962-
sine_wave_on_grid(-1, 1, 0, 1, "center_below"; xshift=π/2)
962+
sine_wave_on_grid(-1, 1, 0, 1, "center_below"; xshift = π / 2)
963963
end
964964

965965
@testset "test layer vs nonlayer actions" begin

0 commit comments

Comments
 (0)