Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public int getColor(FluidStack stack)
- {
- Random r = new Random();
- if(redplus)
- {
- if(r.nextBoolean())
- red++;
- }
- else
- {
- if(r.nextBoolean())
- red--;
- }
- if(greenplus)
- {
- if(r.nextBoolean())
- green++;
- }
- else
- {
- if(r.nextBoolean())
- green--;
- }
- if(blueplus)
- {
- if(r.nextBoolean())
- blue++;
- }
- else
- {
- if(r.nextBoolean())
- blue--;
- }
- if(red == 0)
- {
- redplus = true;
- }
- else if (red == 255)
- {
- redplus = false;
- }
- if(green == 0)
- {
- greenplus = true;
- }
- else if (green == 255)
- {
- greenplus = false;
- }
- if(blue == 0)
- {
- blueplus = true;
- }
- else if (blue == 255)
- {
- blueplus = false;
- }
- return new Color(red, green, blue).getRGB();
- }
Advertisement
Add Comment
Please, Sign In to add comment