Package squidpony.squidcolor

Examples of squidpony.squidcolor.SColor


     */
    private void changeDisplay() {
        control.fontSizeField.setText("" + textFactory.font().getSize());
        control.cellWidthField.setText("" + textFactory.width());
        control.cellHeightField.setText("" + textFactory.height());
        foreground = new SColor(control.foreColorPanel.getBackground());
        background = new SColor(control.backColorPanel.getBackground());
        String text = control.inputTextArea.getText();
        if (text.length() > 0) {
            int position = 0;
            for (int y = 0; y < display.gridHeight(); y++) {
                for (int x = 0; x < display.gridWidth(); x++) {
View Full Code Here


                        display.put(x, y, SColor.BLACK);
                    } else {
                        if (lightSource[x][y]) {
                            display.put(x, y, '⊚', lighting[x][y]);
                        } else {
                            SColor color;
                            if (panel.playerCastsLightBox.isSelected()) {
                                color = SColorFactory.lightWith(map[x][y].color, SColorFactory.add(lighting[x][y], playerLight[x][y]));
                            } else {
                                color = SColorFactory.lightWith(map[x][y].color, lighting[x][y]);
                            }
View Full Code Here

     * @param c
     * @return
     */
    private DemoCell buildCell(char c) {
        float resistance = 0f;//default is transparent
        SColor color;
        switch (c) {
            case '.'://stone ground
                color = SColor.SLATE_GRAY;
                break;
            case '¸'://grass
View Full Code Here

TOP

Related Classes of squidpony.squidcolor.SColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.