Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Color;

public class Main {
    public static void main() {

        float hue = 12;
        float saturation = 13;
        float brightness = 14;

        int rgb = Color.HSBtoRGB(hue, saturation, brightness);
        int red = (rgb >> 16) & 0xFF;
        int green = (rgb >> 8) & 0xFF;
        int blue = rgb & 0xFF;

    }
}