Let’s Kode Together!

As Kotlin Web Demo is the simplest way to try Kotlin. Today we unveil some new features that make it even more fun.

HTML5 Canvas

We added support for HTML5 Canvas (for the JavaScipt back-end) so that you can now do something like:

Watch it in action on YouTube: http://youtu.be/iee75Dtw83k

Note that in order to use Canvas, you need to select the JavaScript (Canvas) run configuration in the panel on the right.

Sharing your programs

Also, you can now save a program you wrote in and share a public link to it:

  1. Go to the Web Demo, and log in with you Google, Facebook or Twitter account.
  2. Write a program, e.g. solve a problem from the Problems section, Save it in your private space.
  3. Share your solution with everyone: press the Public link button next to your saved program and press the button next to the URL, or share the link any other way.

As an example, here’s a public link to the program from the video above:
(It is written by Pavel Talanov.)

P.S. BTW, you can now have local functions in your programs, as well as the new form of when.

About Andrey Breslav

Andrey is the lead language designer of Kotlin at JetBrains.
This entry was posted in Tools. Bookmark the permalink.

4 Responses to Let’s Kode Together!

  1. guangyu says:

    I viewed and ran the program (
    http://kotlin-demo.jetbrains.com/?publicLink=104074971561017308771626401859), and found:

    So cool.
    1) The code was concise;
    2) The appearance is beautiful && fluent.

  2. MuppetGate says:

    That is seriously impressive. :-)

    So you’re writing a Javascript library as well?

  3. Peter says:

    I like the example for ‘when’ in the documentation 😀

Comments are closed.