Tabnine Logo
YoAppearanceRGBColor.getRed
Code IndexAdd Tabnine to your IDE (free)

How to use
getRed
method
in
us.ihmc.graphicsDescription.appearance.YoAppearanceRGBColor

Best Java code snippets using us.ihmc.graphicsDescription.appearance.YoAppearanceRGBColor.getRed (Showing top 2 results out of 315)

origin: us.ihmc/ihmc-graphics-description

public Color getColor()
{
 if (appearance instanceof YoAppearanceRGBColor)
 {
   YoAppearanceRGBColor yoAppearanceRGBColor = (YoAppearanceRGBColor) appearance;
   Color color = new Color(yoAppearanceRGBColor.getRed(), yoAppearanceRGBColor.getGreen(), yoAppearanceRGBColor.getBlue());
   return color;
 }
 else
 {
   throw new RuntimeException("No color defined");
 }
}
origin: us.ihmc/IHMCGraphicsDescription

public Color getColor()
{
 if (this.appearance instanceof YoAppearanceRGBColor)
 {
   YoAppearanceRGBColor yoAppearanceRGBColor = (YoAppearanceRGBColor) this.appearance;
   Color color = new Color(yoAppearanceRGBColor.getRed(), yoAppearanceRGBColor.getGreen(), yoAppearanceRGBColor.getBlue());
   return color;
 }
 else
 {
   throw new RuntimeException("No color defined");
 }
}
us.ihmc.graphicsDescription.appearanceYoAppearanceRGBColorgetRed

Popular methods of YoAppearanceRGBColor

  • <init>
  • setTransparency
  • getBlue
  • getColor
  • getGreen
  • getTransparency

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top Sublime Text plugins
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