(x, useSpecial)
| 983 | const randomSpecialShell = randomShell; |
| 984 | |
| 985 | function launchShell(x, useSpecial) { |
| 986 | const isRandom = shellNameSelector() === "Random"; |
| 987 | let shellType = isRandom ? (useSpecial ? randomSpecialShell : randomMainShell) : shellTypes[shellNameSelector()]; |
| 988 | const shell = new Shell(shellType(useSpecial ? largeSize : smallSize)); |
| 989 | const height = x <= 0.5 ? x / 0.5 : (1 - x) / 0.5; |
| 990 | shell.launch(x, useSpecial ? 0.75 : height * 0.42); |
| 991 | } |
| 992 | |
| 993 | let count = 0; |
| 994 | let delay = 0; |
no test coverage detected