get Green - Java 2D Graphics

Java examples for 2D Graphics:Color RGB

Description

get Green

Demo Code


//package com.java2s;

public class Main {
    public static float getGreen(int Color) {
        float Green = (float) (Color & 255) / 255.0F;
        return Green * 1.0F;
    }/* www  . j a  v  a2s  . c  om*/
}

Related Tutorials