Examples of RadialGradient


Examples of javafx.scene.paint.RadialGradient

            ctx.fillOval(0.14 * size, 0.14 * size, 0.72 * size, 0.72 * size);
            ctx.restore();
        }

        //highlight
        Paint highlight = new RadialGradient(0, 0,
                                             0.3 * size, 0.3 * size,
                                             0.29 * size,
                                             false, CycleMethod.NO_CYCLE,
                                             new Stop(0.0, Color.WHITE),
                                             new Stop(1.0, Color.TRANSPARENT));
View Full Code Here

Examples of javafx.scene.paint.RadialGradient

                                           false, CycleMethod.NO_CYCLE,
                                           new Stop(0.0, ledColor.get().deriveColor(0d, 1d, 0.20, 1d)),
                                           new Stop(0.49, ledColor.get().deriveColor(0d, 1d, 0.13, 1d)),
                                           new Stop(1.0, ledColor.get().deriveColor(0d, 1d, 0.2, 1d)));

        highlightGradient = new RadialGradient(0, 0,
                                             0.3 * size, 0.3 * size,
                                             0.29 * size,
                                             false, CycleMethod.NO_CYCLE,
                                             new Stop(0.0, Color.WHITE),
                                             new Stop(1.0, Color.TRANSPARENT));
View Full Code Here

Examples of javafx.scene.paint.RadialGradient

        bar.setRadiusY(PREFERRED_HEIGHT * 0.5 - 4);
        bar.setStartAngle(getSkinnable().getStartAngle() - 90);
        bar.setLength(0);
        bar.setStrokeType(StrokeType.CENTERED);
        bar.setStroke(null);
        bar.setFill(new RadialGradient(0, 0,
                                       PREFERRED_WIDTH * 0.5, PREFERRED_HEIGHT * 0.5,
                                       PREFERRED_WIDTH * 0.45, false, CycleMethod.NO_CYCLE,
                                       new Stop(0.0, barColor),
                                       new Stop(0.76, barColor.deriveColor(-5, 1, 1, 1)), // -5 for on the barColorHue)
                                       new Stop(0.79, barColor),
View Full Code Here

Examples of javafx.scene.paint.RadialGradient

            if (getSkinnable().isBarGradientEnabled()) {
                recalculateBarGradient();
                Image image = barGradient.getImage(size, size);
                bar.setFill(new ImagePattern(image, 0, 0, size, size, false));
            } else {
                bar.setFill(new RadialGradient(0, 0,
                                               centerX, centerY,
                                               RADIUS, false, CycleMethod.NO_CYCLE,
                                               new Stop(0.0, barColor),
                                               new Stop(0.76, barColor.deriveColor(-5, 1, 1, 1)), // -5 for on the barColorHue)
                                               new Stop(0.79, barColor),
View Full Code Here

Examples of javafx.scene.paint.RadialGradient

                if (!focus.equals(center)) {
                    focusAngle = Math.atan2(focus.getY() - center.getY(),
                        focus.getX() - center.getX());
                }
                double radius = rgp.getRadius();
                RadialGradient rg = new RadialGradient(
                        focusAngle * Math.PI / 180, focusDistance,
                        center.getX(), center.getY(), radius, false,
                        CycleMethod.NO_CYCLE, stops);
                this.gc.setStroke(rg);
                this.gc.setFill(rg);
View Full Code Here

Examples of jsx.style.value.RadialGradient

     * </p>
     *
     * @return A new linear gradient image.
     */
    protected static final RadialGradient radial() {
        return new RadialGradient();
    }
View Full Code Here

Examples of jsx.style.value.RadialGradient

     * </p>
     *
     * @return A new linear gradient image.
     */
    protected static final RadialGradient radial(Color start, Color end) {
        return new RadialGradient().color(start, end);
    }
View Full Code Here

Examples of org.timepedia.chronoscope.client.canvas.RadialGradient

    }
    String[] pieces = afterUrl.split("/");
    String xyr[] = pieces[0].split(",");
    String xyr2[] = pieces[1].split(",");

    RadialGradient radialGradient = layer.createRadialGradient(
        Double.parseDouble(xyr[0]), Double.parseDouble(xyr[1]),
        Double.parseDouble(xyr[2]), Double.parseDouble(xyr2[0]),
        Double.parseDouble(xyr2[1]), Double.parseDouble(xyr2[2]));
    radialGradient.addColorStop(Double.parseDouble(pieces[2]), "#" + pieces[3]);
    radialGradient.addColorStop(Double.parseDouble(pieces[4]), "#" + pieces[5]);
    return radialGradient;
  }
View Full Code Here

Examples of org.timepedia.chronoscope.client.canvas.RadialGradient

    };
  }

  public RadialGradient createRadialGradient(double x0, double y0, double r0,
      double x1, double y1, double r1) {
    return new RadialGradient() {
      public void addColorStop(double position, String color) {
      }
    };
  }
View Full Code Here

Examples of vash.operation.RadialGradient

  @Test public void testPolarTheta1P()   { this.runTest("2204", new PolarTheta(0, 0, 1)); }
  @Test public void testPolarTheta1N()   { this.runTest("2205", new PolarTheta(0, 0, -1)); }
  @Test public void testPolarTheta75at1N(){ this.runTest("2206", new PolarTheta(-1, -1, 0.75)); }

  // radial gradients
  @Test public void testRadGradCenterFull()  { this.runTest("2300", new RadialGradient(0, 0, 0.8, 0.8, 0)); }
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.