Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Nein, direkt uebers Forum als Anhang, mein ich. Bei externen Hostern ist wird es ja sowieso geloescht nach einer Zeit.
Wie Xym das mit seinem "Beispiel" gemacht hat
try
{
//Farbe vom den Pixel auf den man klickt
color = r.getPixelColor(e.getX() + pos.x, e.getY() + pos.y);
füllen(e.getX(), e.getY(), color);
}
public void füllen(int x, int y, Color color) throws AWTException
{
if(suchXrechts == true)
{
//Vergleich der Farben
if(pixelfarbe(x+1, y).equals(color))
{
gOffScreen.setColor(farbe);
//Pixel wird auf's BufferedImage gemalt
gOffScreen.fillRect(x+1, y, 1, 1);
x++;
System.out.println(x);
füllen(x, y, color);
}
else
suchXrechts = false;
}
}
public Color pixelfarbe(int x, int y) throws AWTException
{
Color pixelcolor = r.getPixelColor(x + pos.x, y + pos.y);
return pixelcolor;
}
public void füllen(int x, int y, Color color) throws AWTException
{
if(pixelfarbe(x,y).equals(color))
{
gOffScreen.setColor(farbe);
gOffScreen.fillRect(x, y, 1, 1);
System.out.print(x+" ");
System.out.println(y);
füllen(x+1,y,color);
füllen(x-1,y,color);
füllen(x,y+1,color);
füllen(x,y-1,color);
}
}