Skip to content

Commit

Permalink
Tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
litan committed Jul 10, 2022
1 parent 3102e7c commit 67c1cd8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/samples/tr/unit-circle.kojo
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
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/samples/unit-circle.kojo
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
Expand Down Expand Up @@ -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))
2 changes: 1 addition & 1 deletion src/main/scala/net/kogics/kojo/lite/Builtins.scala
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ Here's a partial list of the available commands:
def text(content: Any, fontSize: Int = 15) = picture.text(content, fontSize, red)
def text(content: Any, font: Font) = picture.text(content, font, red)
def textu(content: Any, fontSize: Int = 15, color: Color = red) = picture.text(content, fontSize, color)
def textu2(content: Any, font: Font, color: Color) = picture.text(content, font, color)
def textu(content: Any, font: Font, color: Color) = picture.text(content, font, color)
def rect(h: Double, w: Double) = picture.rect2(w, h)
def rectangle(width: Double, height: Double) = picture.rect2(width, height)
// def rectangle(x: Double, y: Double, w: Double, h: Double) = picture.offset(x, y) -> picture.rect2(w, h)
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/net/kogics/kojo/lite/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package net.kogics.kojo.lite
object Versions {
val KojoMajorVersion = "2.9"
val KojoVersion = "2.9.22"
val KojoRevision = "r14"
val KojoBuildDate = "9 July 2022"
val KojoRevision = "r15"
val KojoBuildDate = "10 July 2022"
val JavaVersion = {
val jrv = System.getProperty("java.runtime.version")
val arch = System.getProperty("os.arch")
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/net/kogics/kojo/lite/i18n/tr/resim.scala
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ object Resim {
def sütun(r: => Resim, kaçTane: Sayı) = new Resim(picture.col(r.p, kaçTane))
def yazı(içerik: Her, yazıBoyu: Sayı=15) = new Resim(richBuiltins.Picture.text(içerik, yazıBoyu))
def yazı(içerik: Her, yazıyüzü: Yazıyüzü) = new Resim(richBuiltins.Picture.text(içerik, yazıyüzü))
def yazı(içerik: Her, yazıyüzü: Yazıyüzü, renk: Renk) = new Resim(richBuiltins.Picture.textu2(içerik, yazıyüzü, renk))
def yazı(içerik: Her, yazıyüzü: Yazıyüzü, renk: Renk) = new Resim(richBuiltins.Picture.textu(içerik, yazıyüzü, renk))
def yazıRenkli(içerik: Her, yazıBoyu: Sayı, renk: Renk) = new Resim(richBuiltins.Picture.textu(içerik, yazıBoyu, renk))
def imge(dosyaAdı: Yazı) = new Resim(richBuiltins.Picture.image(dosyaAdı))
def imge(dosyaAdı: Yazı, zarf: Resim) = new Resim(richBuiltins.Picture.image(dosyaAdı, zarf.p))
Expand Down

0 comments on commit 67c1cd8

Please sign in to comment.