This site requires JavaScript, please enable it in your browser!
Greenfoot back

Recent Comments | Show All

You can do that in Greenfoot using image.setTransparency(0-255) where image is an instance of GreenfootImage or for colors new Color(redValue, greenValue, blueValue, transparency)
Using for example: public String getName() { UserInfo user = Greenfoot.getUserInfo(); if(user == null) return "Greenfoot User"; return user.getUserName(); }