Examples of SColor


Examples of com.bbn.openmap.layer.specialist.SColor

                properties = loadProps(args[i + 1]);

                lcolor = PropUtils.parseColorFromProperties(properties,
                        lineColorProperty,
                        "FF000000");
                lineColor = new SColor((short) ((lcolor.getRed()) * 65535 / 255), (short) ((lcolor.getGreen()) * 65535 / 255), (short) ((lcolor.getBlue()) * 65535 / 255));
                if (properties.getProperty(fillColorProperty) != null) {

                    fcolor = PropUtils.parseColorFromProperties(properties,
                            fillColorProperty,
                            "FF000000");

                    fillColor = new SColor((short) ((fcolor.getRed()) * 65535 / 255), (short) ((fcolor.getGreen()) * 65535 / 255), (short) ((fcolor.getBlue()) * 65535 / 255));
                }

                String ssx = properties.getProperty(spatialIndexProperty);
                String shp = properties.getProperty(shapeFileProperty);

View Full Code Here

Examples of com.bbn.openmap.layer.specialist.SColor

        return ns(r, g, b);
    }

    private static SColor ns(int r, int g, int b) {
        return new SColor((short) (r * 256), (short) (g * 256), (short) (b * 256));
    }
View Full Code Here

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

Examples of squidpony.squidcolor.SColor

                        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

Examples of squidpony.squidcolor.SColor

     * @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
Copyright © 2018 www.massapi.com. 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.