Tabnine Logo
us.ihmc.graphicsDescription.color
Code IndexAdd Tabnine to your IDE (free)

How to use us.ihmc.graphicsDescription.color

Best Java code snippets using us.ihmc.graphicsDescription.color (Showing top 20 results out of 315)

origin: us.ihmc/ihmc-graphics-description

public void setSpecularColor(float f, float g, float h)
{
 specularColor.setX(f);
 specularColor.setY(g);
 specularColor.setZ(h);
}
origin: us.ihmc/ihmc-graphics-description

public MutableColor(float x, float y, float z)
{
 set(x, y, z);
}
origin: us.ihmc/ihmc-graphics-description-test

  @Override
  public void run() throws Throwable
  {
   Gradient.createMultiGradient(new Color[]{Color.BLUE}, 5);
  }
});
origin: us.ihmc/ihmc-graphics-description

public static java.awt.Color hsvValueToAwt(HSVValue hsvValue)
{
 int rgb = java.awt.Color.HSBtoRGB((float) hsvValue.getHue() / 180.0f, (float) hsvValue.getSaturation() / 255.0f, (float) hsvValue.getBrightnessValue() / 255.0f);
 int red = (rgb >> 16) & 0xFF;
 int green = (rgb >> 8) & 0xFF;
 int blue = (rgb) & 0xFF;
 return new java.awt.Color(red, green, blue);
}
origin: us.ihmc/ihmc-graphics-description

public float getRed()
{
 return color.getX();
}
origin: us.ihmc/ihmc-graphics-description

public float getBlue()
{
 return color.getZ();
}
origin: us.ihmc/ihmc-graphics-description

public float getGreen()
{
 return color.getY();
}
origin: us.ihmc/ihmc-graphics-description

public static HSVValue awtToHSVValue(java.awt.Color color)
{
 float[] hsvArray = new float[3];
 java.awt.Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), hsvArray);
 float hue = hsvArray[0] * 180.0f;
 float saturation = hsvArray[1] * 255.0f;
 float brightnessValue = hsvArray[2] * 255.0f;
 return new HSVValue(hue, saturation, brightnessValue);
}
origin: us.ihmc/ihmc-perception

  @Override
  public int hashCode()
  {
   int result = lowerBoundScalar.hashCode();
   result = 31 * result + upperBoundScalar.hashCode();
   result = 31 * result + lowerBoundHSV.hashCode();
   result = 31 * result + upperBoundHSV.hashCode();
   return result;
  }
}
origin: us.ihmc/ihmc-javafx-toolkit

private Color getHeatColor(int heat)
{
 double maxHeat = 30.0;
 int heatIndex = (int) MathTools.roundToPrecision(MathTools.clamp((heat / maxHeat) * 500.0, 0.0, 499.0), 1.0);
 return ColorConversions.awtToJfx(rainbow[heatIndex]);
}
origin: us.ihmc/ihmc-graphics-description

public void setDiffuseColor(float f, float g, float h)
{
 diffuseColor.setX(f);
 diffuseColor.setY(g);
 diffuseColor.setZ(h);
}
origin: us.ihmc/ihmc-graphics-description

public void set(MutableColor other)
{
 set(other.x, other.y, other.z);
}
origin: us.ihmc/ihmc-graphics-description

public static Color[] createRainbow(int steps)
{
 return createMultiGradient(new Color[] { Color.magenta, Color.blue, Color.green, Color.yellow, Color.orange, Color.red }, steps);
}
origin: us.ihmc/ihmc-graphics-description

public void setAmbientColor(float f, float g, float h)
{
 ambientColor.setX(f);
 ambientColor.setY(g);
 ambientColor.setZ(h);
}
origin: us.ihmc/ihmc-graphics-description

public MutableColor(Color color)
{
 set(color);
}
origin: us.ihmc/ihmc-graphics-description

public void setAmbientColor(MutableColor color3f)
{
 ambientColor.set(color3f);
}
origin: us.ihmc/ihmc-graphics-description

public MutableColor(float[] color)
{
 set(color[0], color[1], color[2]);
}
origin: us.ihmc/ihmc-graphics-description

public void setSpecularColor(MutableColor color3f)
{
 specularColor.set(color3f);
}
origin: us.ihmc/ihmc-graphics-description

public MutableColor(MutableColor color)
{
 set(color);
}
origin: us.ihmc/ihmc-graphics-description

public void setDiffuseColor(MutableColor color3f)
{
 diffuseColor.set(color3f);
}
us.ihmc.graphicsDescription.color

Most used classes

  • MutableColor
  • Gradient
    Class to create color gradients.
  • HSVValue
  • ColorConversions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now