File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
! The Mexican Wave
2
2
3
+ script Wave
4
+
3
5
div Container
4
6
div Rectangle
5
7
variable Height
32
34
set the style of Rectangle to
33
35
`position:absolute;width:9%;background:peru;`
34
36
cat `display:inline-block;margin-left:0.5%`
35
- set style `top` of Rectangle to `50%`
37
+ set style `top` of Rectangle to 200
36
38
set style `left` of Rectangle to `calc(10% * ` cat N cat `)`
37
- set style `height` of Rectangle to `100px `
39
+ set style `height` of Rectangle to `1px `
38
40
add 1 to N
39
41
end
40
42
71
73
clear AllDone ! not finished yet
72
74
if Time is greater than Start
73
75
begin
74
- put sin Angle radius 100 into Height
76
+ put cos Angle radius 100 into Height
77
+ negate Height
75
78
set style `top` of Rectangle to `calc(50% - ` cat Height cat `px)`
76
79
set style `height` of Rectangle to `calc(100px + ` cat Height cat `px)`
77
80
add 1 to Angle
You can’t perform that action at this time.
0 commit comments