@@ -916,17 +916,17 @@ end
916
916
end
917
917
918
918
@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 )
920
920
@JShape begin
921
921
@scale_layer mapping begin
922
922
x = collect (cleft: 0.1 : cright)
923
923
y = sin .(x .+ xshift)
924
924
circle .(Point .(x, y), 0.02 , :fill )
925
925
end
926
- end cleft = cleft cright = cright xshift= xshift
926
+ end cleft = cleft cright = cright xshift = xshift
927
927
end
928
928
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 )
930
930
vid = Video (500 , 500 )
931
931
nframes = 1
932
932
Background (1 : nframes, ground)
942
942
cs = coordinate_system (mapping; fct = arrow, step_size_x = 1 , step_size_y = 1 )
943
943
944
944
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))
946
946
947
947
render (vid; tempdirectory = " images/" , pathname = " " )
948
948
959
959
sine_wave_on_grid (- 5 , - 1 , - 1 , 1 , " right" )
960
960
sine_wave_on_grid (0.5 , 2 , 0.4 , 1.2 , " bottom" )
961
961
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 )
963
963
end
964
964
965
965
@testset " test layer vs nonlayer actions" begin
0 commit comments