}
public void drawFill(Context2d context, WebGraphics g) {
//we only fill the room when the filling image is ready.
if (ImageUtils.CachedImages.containsKey(textureName)) {
FillStrokeStyle fst = context.getFillStyle();
if (cp == null) {
Image im = ImageUtils.CachedImages.get(textureName);
ImageElement ie = ImageElement.as(im.getElement());
cp = context.createPattern(ie, Repetition.REPEAT);
}