Writing Processing in Kotlin

Nice tips @anoniim ! Thank you for sharing. I didn’t know about those live templates :slight_smile:

About floats… true, things would be simpler if Processing used Double everywhere. Defaulting to floats is what makes it messy to convert Processing Java code to Kotlin automatically. I should try converting the pre-processed java file that is found in some folder instead of the .pde file. Probably works much better.

It seems like in some cases it can be also faster to work with Double.

1 Like