Examples of Color


Examples of jsx.style.value.Color

     *
     * @param transparency A transparency of shadow.
     * @return
     */
    public Text shadow(Color color, double transparency) {
        color = new Color(0, 0, color.lightness < 50 ? 100 : 0, transparency);
        Shadow shadow1 = new Shadow().offset(1, 0, px).color(color);
        Shadow shadow2 = new Shadow().offset(0, 1, px).color(color);

        return shadow(shadow1, shadow2);
    }
View Full Code Here

Examples of libshapedraw.primitive.Color

        rotate.animateStartLoop(360.0, false, 5000);
    }

    private void createColorShiftingShape() {
        WireframeCuboid box = new WireframeCuboid(8,63,2, 9,64,3);
        Color color = Color.CRIMSON.copy();
        box.setLineStyle(color, 3.0F, false);
        libShapeDraw.addShape(box);
        color.animateStartLoop(Color.MEDIUM_BLUE.copy().setAlpha(0.2), true, 750);

        // Prefer a functional coding style? This is the equivalent of the above:
        //libShapeDraw.addShape(
        //        new WireframeCuboid(8,63,2, 9,64,3)
        //        .setLineStyle(
View Full Code Here

Examples of net.drthum.simon.model.Color

        lbStatus.setText("Showing sequence.");
        Runnable run = new Runnable() {
            @Override
            public void run() {
                Iterator<Color> it = sequence.iterator();
                Color color;
                try {
                    Thread.sleep(500);
                } catch (InterruptedException ex) {
                    System.err.println("Caught InterruptedException: " + ex.getMessage());
                }
View Full Code Here

Examples of net.relativt.chartjs4j.color.Color

        lineChartData.getLabels().add("June");
        lineChartData.getLabels().add("July");

    // *** Dataset 1

    Color fillColor = Colors.rgba(220, 220, 220, 0.5);
    Color strokeColor = Colors.rgba(220,220,220,1);
        Color pointColor = Colors.rgba(220,220,220,1);
    Color pointStrokeColor = Colors.hex("fff");

        LineChartDataSet e = new LineChartDataSet(fillColor, strokeColor, pointColor, pointStrokeColor);
        e.getData().add(65);
        e.getData().add(59);
        e.getData().add(90);
View Full Code Here

Examples of net.sf.nfp.mini.misc.Color

    }
    final int step = 10;
    for (int tempStep = tempStart; tempStep <= tempEnd; tempStep += step) {
      colorIndex = (colorIndex + 1) % BACKGROUND_COLORS.length;
      int c = BACKGROUND_COLORS[colorIndex];
      c = Color.blend(new Color(c), new Color(color)).getRGB();
      g.setColor(c);
      g.fillRect(boxStart, ty.get(tempStep + step), boxWidth, backgroundStripeHeight);
    }
  }
View Full Code Here

Examples of nextapp.echo2.app.Color

    public Component newInstance() {
        try {
            Component component = (Component) componentClass.newInstance();
            switch ((int) (Math.random() * 3)) {
            case 1:
                component.setForeground(new Color((int) (16777216 * Math.random()) & 0x7f7f7f));
                component.setBackground(new Color((int) (16777216 * Math.random()) | 0xb0b0b0));
                break;
            case 2:
                component.setBackground(new Color((int) (16777216 * Math.random())));
                break;
            case 3:
                component.setForeground(new Color((int) (16777216 * Math.random())));
                break;
            }
            return component;
        } catch (InstantiationException ex) {
            throw new RuntimeException(ex);
View Full Code Here

Examples of nodebox.graphics.Color

        public void setDragPoint(Point dragPoint) {
            this.dragPoint = dragPoint;
            repaint();
            int x = dragPoint.x - point.x;
            int y = dragPoint.y - point.y;
            setColor(new Color(colorFromPoint(x, y)));
        }
View Full Code Here

Examples of ome.xml.model.primitives.Color

            int red = color & 0xff;
            int green = (color & 0xff00) >> 8;
            int blue = (color & 0xff0000) >> 16;

            channelColor[i] = new Color(red, green, blue, 255);

            for (int j=0; j<256; j++) {
              lut[getSeries()][i * 3][j] = (byte) ((red / 255.0) * j);
              lut[getSeries()][i * 3 + 1][j] = (byte) ((green / 255.0) * j);
              lut[getSeries()][i * 3 + 2][j] = (byte) ((blue / 255.0) * j);
 
View Full Code Here

Examples of org.andrewberman.ui.Color

    regStroke = 1f;

    dimColor = foregroundColor.brighter(200);
    dimStroke = 2f;

    hoverColor = new Color(100, 150, 255);
    hoverStroke = 2f;

    copyColor = new Color(255, 0, 0);
    copyStroke = 2f;

    nodeSizeMultiplier = 0.5f;
    lineThicknessMultiplier = 1f;
  }
View Full Code Here

Examples of org.apache.fop.area.Trait.Color

                        //}
                    } else if (cl == Background.class) {
                        //String value = attributes.getValue(Trait.getTraitName(trait));
                        //if (value != null) {
                            Background bkg = new Background();
                            Color col = Color.valueOf(attributes.getValue("bkg-color"));
                            if (col != null) {
                                bkg.setColor(col);
                            }
                            String url = attributes.getValue("bkg-img");
                            if (url != null) {
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.