Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GenericGradient gradient = new GenericGradient();
- gradient.setTopColor(new Color(0.0F, 0.0F, 0.0F, 0.0F)); //Red, Green, Blue, Alpha. This makes the gradient white
- gradient.setBottomColor(new Color(0.0F, 0, 0, 0.0F)); //Red, Green, Blue, Alpha. This makes the gradient red
- gradient.setHeight(4).setWidth(10);//This makes it 32*32.
- gradient.setAnchor(WidgetAnchor.TOP_RIGHT);
- gradient.setVisible(true);
- player.getMainScreen().attachWidget(gradient);
- GenericGradient gradient2 = new GenericGradient();
- gradient2.setTopColor(new Color(1.0F, 0.0F, 0.0F, 0.0F)); //Red, Green, Blue, Alpha. This makes the gradient white
- gradient2.setBottomColor(new Color(1.0F, 0, 0, 0.0F)); //Red, Green, Blue, Alpha. This makes the gradient red
- gradient2.setHeight(4).setWidth(10);//This makes it 32*32.
- gradient2.setAnchor(WidgetAnchor.TOP_RIGHT);
- gradient2.setVisible(true);
- player.getMainScreen().attachWidget(gradient2);
Add Comment
Please, Sign In to add comment