Example usage for com.vaadin.shared.ui.colorpicker Color getHSV

List of usage examples for com.vaadin.shared.ui.colorpicker Color getHSV

Introduction

In this page you can find the example usage for com.vaadin.shared.ui.colorpicker Color getHSV.

Prototype

public float[] getHSV() 

Source Link

Document

Returns converted HSV components of the color.

Usage

From source file:org.eclipse.hawkbit.ui.common.CoordinatesToColor.java

License:Open Source License

@Override
public int[] calculate(final Color color) {
    final float[] hsv = color.getHSV();
    final int x = Math.round(hsv[0] * 220F);
    final int y = calculateYCoordinateOfColor(hsv);
    return new int[] { x, y };
}