本文整理了Java中us.ihmc.graphics3DAdapter.graphics.appearances.YoAppearance.Purple()
方法的一些代码示例,展示了YoAppearance.Purple()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.Purple()
方法的具体详情如下:
包路径:us.ihmc.graphics3DAdapter.graphics.appearances.YoAppearance
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!