us.ihmc.graphics3DAdapter.graphics.appearances.YoAppearance.Purple()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中us.ihmc.graphics3DAdapter.graphics.appearances.YoAppearance.Purple()方法的一些代码示例,展示了YoAppearance.Purple()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.Purple()方法的具体详情如下:
包路径:us.ihmc.graphics3DAdapter.graphics.appearances.YoAppearance
类名称:YoAppearance
方法名:Purple

YoAppearance.Purple介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/IHMCGraphics3DDescription

public static AppearanceDefinition[] getStandardRoyGBivRainbow()
{
 AppearanceDefinition[] rainbow = new AppearanceDefinition[] { YoAppearance.Red(), YoAppearance.OrangeRed(), YoAppearance.Yellow(),
    YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Indigo(), YoAppearance.Purple()};
 
 return rainbow;
}

代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge

public FootstepGeneratorVisualizer(int maxNumberOfContacts, int maxPointsPerContact, YoVariableRegistry parentRegistry,
   YoGraphicsListRegistry yoGraphicsListRegistry)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList("FootstepGeneratorVisualizer");
 AppearanceDefinition[] appearances = new AppearanceDefinition[] { YoAppearance.Red(), YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Purple() };
 for (int i = 0; i < maxNumberOfContacts; i++)
 {
   YoFramePose contactPose = new YoFramePose("contactPose" + i, "", worldFrame, registry);
   contactPoses.add(contactPose);
   YoFrameConvexPolygon2d contactPolygon = new YoFrameConvexPolygon2d("contactPolygon" + i, "", worldFrame, maxPointsPerContact, registry);
   contactPolygonsWorld.add(contactPolygon);
   YoGraphicPolygon dynamicGraphicPolygon = new YoGraphicPolygon("contactPolygon" + i, contactPolygon, contactPose, 1.0, appearances[i
      % appearances.length]);
   yoGraphicsList.add(dynamicGraphicPolygon);
 }
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 parentRegistry.addChild(registry);
}

相关文章