|
@@ -53,8 +53,8 @@ namespace bbiwarg.DataSource
|
|
|
if (u < 0 || v < 0)
|
|
|
return Color.Black;
|
|
|
|
|
|
- int xInColorImage = (int) (u * colorImage.getWidth());
|
|
|
- int yInColorImage = (int) (v * colorImage.getHeight());
|
|
|
+ int xInColorImage = (int) (u * colorImage.getWidth()) % colorImage.getWidth();
|
|
|
+ int yInColorImage = (int) (v * colorImage.getHeight()) % colorImage.getHeight();
|
|
|
return colorImage.getColor(xInColorImage, yInColorImage);
|
|
|
}
|
|
|
}
|