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

2013/6/30

Image issue

danpost danpost

2013/6/30

#
I just uploaded a 'Pakman' scenario whose walls are supposed to be blue and no lines should be showing between wall instances. I guess if the color was set correctly the lines would not show; however, this happens when uploaded to the site and as an application. When downloaded and run in the Greenfoot application, the walls show correctly (no red tint and no vertical blue lines between wall instances). Can someone on the Greenfoot team tell me why this happens?
danpost danpost

2013/6/30

#
The scenario can be found here.
davemib123 davemib123

2013/6/30

#
not a solution but I found that in Wall.class:
public Color GRAY = new Color(128, 128, 255);
is actually a blueish colour and not grey. When I downloaded the scenario and tested it in greenfoot the red tint is visible. This might lead to something. I changed these lines in Wall.class:
image.setColor(GRAY);
base.setColor(GRAY);
to:
image.setColor(BLUE);
base.setColor(BLUE);
... and the maze does become blue, not sure if that is what you wanted?
davemib123 davemib123

2013/6/30

#
Just tested this. replace:
public Color GRAY= new Color(128, 128, 255);
with:
public Color GRAY= new Color(92,148,252);
danpost danpost

2013/6/30

#
I am aware that Color(128, 128, 255) is a blueish color. By varying the 'red' and 'green' parts of the color, keeping the values equal, the effect is to lighten or darken the blue color. Color(0, 0, 0) = black Color(0, 0, 128) = dark blue Color(0, 0, 255) = blue Color(128, 128, 255) = light blue Color(255, 255, 255) = white I only used the name gray for 'light blue' to keep things simple. However, there should not be a significantly visible amount of red in any of those colors. Check out the true colors using my Color Coordination scenario. And still, what can explain the vertical lines that are appearing?
davmac davmac

2013/7/1

#
I don't see any vertical lines when I view the scenario, nor any red tint to the walls. One thing to check - is Greenfoot running using the latest version of Java on your system (i.e. the same Java version as the plugin)? If it's not, that might explain the difference between what you see after exporting compared to when running in Greenfoot. But whether or not that's not the case, I suspect this problem is a Java / display driver bug or interaction problem.
You need to login to post a reply.