-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started
Giorgio Garofalo edited this page Aug 31, 2021
·
25 revisions
-
Download the Pikt archive and unzip it anywhere.
-
Extract the
kotlinc
folder out of the bundled Kotlin compiler anywhere. -
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.
-
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 theout/
folder that, since your image is empty, will do nothing. Also, remember to append.bat
tokotlinc
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.