Java Integer Clamp clampColorInt(int color)

Here you can find the source of clampColorInt(int color)

Description

clamp Color Int

License

Open Source License

Declaration

public static int clampColorInt(int color) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final int RGB_WHITE = 16_777_215;

    public static int clampColorInt(int color) {
        return (color < 0) ? 0 : (color > RGB_WHITE) ? RGB_WHITE : color;
    }/*from w w  w .  j a va2 s.co m*/
}

Related

  1. clamp_int(int num, int min, int max)
  2. clamp_wrap(int a, int x, int y)
  3. clampAngle(int angle)
  4. clampByte(int in)
  5. clampColor(int c)
  6. CLAMPED_Wr(long ITERW, int FBZCP)
  7. clampI(int a, int min, int max)
  8. clampInt(final int min, final int max, final int value)
  9. clampInt(final int min, final int value, final int max)