Python code conversion to processing Java

step() is a function in that Python code. So you should make it a function in Java too! :coffee:

That step() function relies on a method called rgb_to_hsv() from a class called colorsys. :rainbow:

You’re gonna need to find a corresponding Java library which does the same thing as that method. :open_book:

Maybe Java’s class ColorSpace from package java.awt.color w/ its method fromRGB​() can do that: :thinking:
Docs.Oracle.com/javase/10/docs/api/java/awt/color/ColorSpace.html#fromRGB(float[])