Skip to content

Getting started

Giorgio Garofalo edited this page Aug 31, 2021 · 25 revisions
  1. Download the Pikt archive and unzip it anywhere.

  2. Extract the kotlinc folder out of the bundled Kotlin compiler anywhere.

  3. Create a very small (i.e. 5x5 px) white-filled image with any editor you like. I personally use Photoshop, but any tool that allows you to zoom enough in will be good.

  4. Test if everything is set: run java -Dsource=<your_image.png> -Dcolors=colors -Dtargets=jvm -Djvmcompiler=<path_to_kotlinc>/bin/kotlinc -jar pikt.jar. This should compile a JAR executable into the out/ folder that, since your image is empty, will do nothing. Also, remember to append .bat to kotlinc if you are using Windows. In case you're asking, -Dcolors defines the .properties color scheme your Pikt program uses that, in this case, is the default one.