Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int rainbow(int delay) {
- double rainbowState = Math.ceil((System.currentTimeMillis() + delay) / 20.0);
- rainbowState %= 360.0;
- return Color.getHSBColor((float) (rainbowState / 360.0f), 0.8f, 0.7f).getRGB();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement