Created
December 25, 2021 20:10
-
-
Save qwjyh/00e8a421056037597833648bfc12b9b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@concatStr(str1, str2){ | |
`{str1}{str2}` | |
} | |
$content <- "" | |
$step <- 1 | |
$steps <- 30 | |
// 角度計算 | |
@deg(stepn) { | |
$out <- ((stepn / steps) * 360) | |
out | |
} | |
@onestep(stepm, content) { | |
// 1段階目 | |
content <- concatStr(content, "$[rotate.deg=") | |
content <- concatStr(content, deg(stepm)) | |
content <- concatStr(content, " ") | |
content <- concatStr(content, "\(\\[5em]\)") | |
// 2段階目 | |
content <- concatStr(content, "$[rotate.deg=") | |
content <- concatStr(content, ((3 * 360) - (deg(stepm) * 3))) | |
content <- concatStr(content, " ") | |
content <- concatStr(content, "\(\\[1.4em]\)・") | |
// end | |
content <- concatStr(content, "]]") | |
content | |
} | |
// content <- onestep(1, content) | |
~ #i, steps { | |
content <- onestep(i, content) | |
content <- concatStr(content, "\(\\[-7.6em]\)") | |
} | |
content <- concatStr(content, "\(\\[7em]\)") | |
content <- concatStr("<center>", content) | |
content <- concatStr(content, "</center>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment