-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// by Bulent Basaran [email protected] 2022 | ||
toggleFullScreenCanvas() | ||
val numTurns = 7 | ||
val superImpose = false // sine goes left to right. cosine goes top to bottom. this super imposes another cosine curve to go left to right as well | ||
cleari | ||
toggleFullScreenCanvas() | ||
val (rb, rc) = (4.0, 160.0) // radius of the small ball in orbit and the radius of its circular orbit | ||
zoomXY(0.6, 0.6, 600, -2 * rc) | ||
val numPerTurn = 120 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// by Bulent Basaran [email protected] 2022 | ||
toggleFullScreenCanvas() | ||
val numTurns = 7 | ||
val superImpose = false // sine goes left to right. cosine goes top to bottom. this super imposes another cosine curve to go left to right as well | ||
cleari | ||
toggleFullScreenCanvas() | ||
val (rb, rc) = (4.0, 160.0) // radius of the small ball in orbit and the radius of its circular orbit | ||
zoomXY(0.6, 0.6, 600, -2 * rc) | ||
val numPerTurn = 120 | ||
|
@@ -103,5 +103,5 @@ animate { | |
updateCos(ball.position) | ||
updateArc(ball.position) | ||
} | ||
draw(trans(40, -100) -> Picture.textu2("Sine wave => ...", Font("JetBrains Mono", 40), cSin)) | ||
draw(trans(-30, -200) * rotp(-90, 0, 0) -> Picture.textu2("Cosine wave => ...", Font("JetBrains Mono", 40), cCos)) | ||
draw(trans(40, -100) -> Picture.textu("Sine wave => ...", Font("JetBrains Mono", 40), cSin)) | ||
draw(trans(-30, -200) * rotp(-90, 0, 0) -> Picture.textu("Cosine wave => ...", Font("JetBrains Mono", 40), cCos)) |
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
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
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