public static Color3f parseColor3f(String color) { try { StringTokenizer s = new StringTokenizer(color, ","); return new Color3f(new float[] {Float.parseFloat(s.nextToken()), Float.parseFloat(s.nextToken()), Float.parseFloat(s.nextToken())}); } catch (Exception e) { return null; } }
public float getBlue() { return color.getZ(); }
public float getRed() { return color.getX(); }
public float getGreen() { return color.getY(); }
public void setAmbientColor(Color3f color3f) { ambientColor.set(color3f); }
YoGraphicPosition.GraphicType.values()[(int) (double) consts[1]], appearance.getColor().get(), consts[0]); (DoubleYoVariable) vars[2], appearance.getColor().get()); ReferenceFrame.getWorldFrame()); return new YoArtifactLineSegment2d(name, segment, appearance.getColor().get()); return new YoArtifactPolygon(name, convexPolygon2d, appearance.getColor().get(), consts[0] > 0);
public float getBlue() { return color.getZ(); }
public float getRed() { return color.getX(); }
public float getGreen() { return color.getY(); }
public void setAmbientColor(Color3f color3f) { ambientColor.set(color3f); }
public YoAppearanceRGBColor(double red, double green, double blue, double transparency) { color = new Color3f((float) red, (float) green, (float) blue); awtColor = new Color((float) red, (float) green, (float) blue, (float) (1.0 - transparency)); setTransparency(transparency); }
public void setSpecularColor(Color3f color3f) { specularColor.set(color3f); }
public YoAppearanceRGBColor(Color color, double transparency) { this.color = new Color3f(color); awtColor = new Color(color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, (float) (1.0 - transparency)); setTransparency(transparency); }