Tabnine Logo
YoAppearanceRGBColor.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
us.ihmc.graphicsDescription.appearance.YoAppearanceRGBColor
constructor

Best Java code snippets using us.ihmc.graphicsDescription.appearance.YoAppearanceRGBColor.<init> (Showing top 20 results out of 315)

origin: us.ihmc/ihmc-graphics-description

public YoArtifact(String name, double[] constants, Color color, YoVariable<?>... variableArray)
{
 super(name);
 
 this.variableArray = variableArray;
 this.constants = constants;
 this.appearance = new YoAppearanceRGBColor(color, 0.0);
 this.color = color;
}
origin: us.ihmc/IHMCGraphicsDescription

public YoArtifact(String name, double[] constants, Color color, YoVariable<?>... variableArray)
{
 super(name);
 
 this.variableArray = variableArray;
 this.constants = constants;
 this.appearance = new YoAppearanceRGBColor(color, 0.0);
 this.color = color;
}
origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition RGBColor(float red, float green, float blue)
{
 return new YoAppearanceRGBColor(red, green, blue, 0.0);
}
origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition RGBColor(double red, double green, double blue)
{
 return new YoAppearanceRGBColor(red, green, blue, 0.0);
}
origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition RGBColor(float red, float green, float blue)
{
 return new YoAppearanceRGBColor(red, green, blue, 0.0);
}
origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition RGBColor(double red, double green, double blue, double transparency)
{
 return new YoAppearanceRGBColor(red, green, blue, transparency);
}
origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition RGBColor(double red, double green, double blue, double transparency)
{
 return new YoAppearanceRGBColor(red, green, blue, transparency);
}
origin: us.ihmc/ihmc-common-walking-control-modules-test

private void setupTrackBallsVisualization()
{
 comTrack = new BagOfBalls(numberOfTrackBalls, trackBallSize, "CoMTrack", new YoAppearanceRGBColor(comPointsColor, 0.0), registry, graphicsListRegistry);
 icpTrack = new BagOfBalls(numberOfTrackBalls, trackBallSize, "ICPTrack", new YoAppearanceRGBColor(icpPointsColor, 0.0), registry, graphicsListRegistry);
 cmpTrack = new BagOfBalls(numberOfTrackBalls, trackBallSize, "CMPTrack", new YoAppearanceRGBColor(cmpPointsColor, 0.0), registry, graphicsListRegistry);
 copTrack = new BagOfBalls(numberOfTrackBalls, trackBallSize, "CoPTrack", new YoAppearanceRGBColor(copPointsColor, 0.0), registry, graphicsListRegistry);
}
origin: us.ihmc/simulation-construction-set-tools

@Override
public void unSelect(boolean reset)
{
 cylinderGraphic.setAppearance(new YoAppearanceRGBColor(defaultColor, unselectTransparency));
 
}
origin: us.ihmc/simulation-construction-set-tools

@Override
public void unSelect(boolean reset)
{
 boxGraphics.setAppearance(new YoAppearanceRGBColor(defaultColor, unselectTransparency));
}
origin: us.ihmc/simulation-construction-set-tools

@Override
public void unSelect(boolean reset)
{
 wheelGraphic.setAppearance(new YoAppearanceRGBColor(defaultColor, unselectTransparency));
 
}
origin: us.ihmc/ihmc-jmonkey-engine-toolkit

public void run()
{
  transparency += 0.01;
  if (transparency > 1.0) transparency = 0.0;
    MutableColor color = new MutableColor((float) Math.random(), (float) Math.random(), (float) Math.random());
  YoAppearanceRGBColor appearance = new YoAppearanceRGBColor(color, 0.0);
  appearance.setTransparency(transparency);
  instruction.setAppearance(appearance);
}
origin: us.ihmc/ihmc-jmonkey-engine-toolkit

public void run()
{
  transparency += 0.01;
  if (transparency > 1.0)
   transparency = 0.0;
  MutableColor color = new MutableColor((float) Math.random(), (float) Math.random(), (float) Math.random());
  YoAppearanceRGBColor appearance = new YoAppearanceRGBColor(color, 0.0);
  appearance.setTransparency(transparency);
  instruction.setAppearance(appearance);
}
origin: us.ihmc/IHMCJMonkeyEngineToolkit

public void run()
{
  transparency += 0.01;
  if (transparency > 1.0)
   transparency = 0.0;
  Color3f color = new Color3f((float) Math.random(), (float) Math.random(), (float) Math.random());
  YoAppearanceRGBColor appearance = new YoAppearanceRGBColor(color, 0.0);
  appearance.setTransparency(transparency);
  instruction.setAppearance(appearance);
}
origin: us.ihmc/IHMCJMonkeyEngineToolkit

public void run()
{
  transparency += 0.01;
  if (transparency > 1.0) transparency = 0.0;
    Color3f color = new Color3f((float) Math.random(), (float) Math.random(), (float) Math.random());
  YoAppearanceRGBColor appearance = new YoAppearanceRGBColor(color, 0.0);
  appearance.setTransparency(transparency);
  instruction.setAppearance(appearance);
}
origin: us.ihmc/ihmc-footstep-planning-test

  private AppearanceDefinition getAppearanceForCost(double cost)
  {
   double greenCost = 0.0;
   double redCost = 1.5;

   cost -= greenCost;
   cost = -cost;

   double index = cost * 1000.0 / (greenCost - redCost);
   index = MathTools.clamp(index, 0, 999);

   colorIndexYoVariable.set(index);

   Color costColor = costColorGradient[(int) (index)];
   return new YoAppearanceRGBColor(costColor, 0.0);
  }
}
origin: us.ihmc/simulation-construction-set-tools

@Override
public void select()
{
 unSelect(false);
 boxGraphics.setAppearance(new YoAppearanceRGBColor(selectedColor, selectTransparency));
 notifySelectedListenersThisWasSelected(this);
}
origin: us.ihmc/simulation-construction-set-tools

@Override
public void select()
{
 unSelect(false);
 
 wheelGraphic.setAppearance(new YoAppearanceRGBColor(selectedColor, selectTransparency));
 
 notifySelectedListenersThisWasSelected(this);
}
origin: us.ihmc/simulation-construction-set-tools

@Override
public void select()
{
 unSelect(false);
 
 cylinderGraphic.setAppearance(new YoAppearanceRGBColor(selectedColor, selectTransparency));
 
 notifySelectedListenersThisWasSelected(this);
}
origin: us.ihmc/simulation-construction-set-tools

public static void addCube(double cubeX, double cubeY, double cubeSize, Color color, SimulationConstructionSet scs)
{
 final double CUBE_HEIGHT = 0.001;
 // Make cubes a tiny bit smaller so they don't blend together.
 cubeSize *= 0.9;
 
 
 Graphics3DObject linkGraphics = new Graphics3DObject();
 linkGraphics.translate(new Vector3D(cubeX, cubeY ,CUBE_HEIGHT));
 linkGraphics.addCube(cubeSize, cubeSize, cubeSize, new YoAppearanceRGBColor(new MutableColor(color), 0.0));
 
 scs.addStaticLinkGraphics(linkGraphics);
}
us.ihmc.graphicsDescription.appearanceYoAppearanceRGBColor<init>

Popular methods of YoAppearanceRGBColor

  • setTransparency
  • getBlue
  • getColor
  • getGreen
  • getRed
  • getTransparency

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for Android Studio
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