/kproc

Processing with Kotlin

Primary LanguageKotlinMIT LicenseMIT

Processing with Kotlin

This project grows out of my desire to learn Kotlin and Processing simultaneously. It is also an experiment to gain access to Processing's core library (all those graphics functions) without using its IDE. As it turned out, Processing and Kotlin can work together quite seamlessly.

All programs are small and stand-alone. You need Java 8 and Gradle 4.4 to build them:

  • gradle classes to compile
  • gradle run to see it

In chronological order:

Model gravity and bouncing.

Bouncing Balls

Game of Life

Fractals

Follow a fixed point on a rolling circle. Some beautiful curves are traced out.

Loci

Use arrow keys to adjust the launching angle and speed, use spacebar to launch. Model gravity and wind resistance.

Cannon Game

Experiment with JBox2D. Can the house stop the boulders?

Boulder Slide

Thanks to The Nature of Code for inspirations.