New Kojo Release — 2.4.12

I’m pleased to announce a new release of Kojo. Highlights include:

  • Croatian support, contributed by Luka Volarić.
  • Further improvements to the support for high DPI displays. This should work better out of the box. But you now also have the option of tweaking your font sizes by modifying the kojo.properties file located at ~/.kojo/lite. Here are the first few lines of the file:
# Uncomment/tweak options as desired:
# Increase Kojo font size
# font.increase=2
# Or decrease Kojo font size
# font.increase=-4
  • A new drawing API (the Shapes API), inspired by Doodle.  Here’s an example:
Shape.clear()
def r(w: Int, h: Int) = Shape.rectangle(w, h) .outlined(black)
def sq(l: Int) = r(l, l)
def vgap(l: Int) = Shape.gap(0, l)
def hgap(l: Int) = Shape.gap(l, 0)

val eyes = sq(50) beside hgap(100) beside sq(50) filled(lightGray)
val nose = r(30, 100) .filled(orange)
val mouth = r(100, 20) .filled(red)

val face = eyes above
 vgap(10) above
 nose above
 vgap(30) above
 mouth on
 sq(350)

Shape.draw(face)

shapes-simple-example

As always, the new version is available from the Kojo Download Page.

Enjoy!

Advertisement
This entry was posted in News, Release. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s