private void tiledDrawableSettings(DrawableData drawable, ColorData colorData, float minWidth, float minHeight, String name) {
        drawable.name = name;
        drawable.tintName = colorData.getName();
        drawable.minWidth = minWidth;
        drawable.minHeight = minHeight;
        
        //Fix background color for new, tinted drawable
        Color temp = Utils.averageEdgeColor(drawable.file, colorData.color);

        if (Utils.brightness(temp) > .5f) {
            drawable.bgColor = Color.BLACK;
        } else {
            drawable.bgColor = Color.WHITE;
        }
        
        if (!atlasData.getDrawables().contains(drawable, false)) {
            atlasData.getDrawables().add(drawable);
        }
        projectData.setChangesSaved(false);
        gatherDrawables();
        atlasData.produceAtlas();
        sortBySelectedMode();
        getStage().setScrollFocus(scrollPane);
    }
Recreates the drawables array only including visible drawables.
core/src/com/ray3k/skincomposer/dialog/DialogDrawables.java