Examples of RGBColor


Examples of org.jwildfire.create.tina.palette.RGBColor

        hslPixel.hue = 0.6 + (rnd - 1.0) / 7.0;
      else
        hslPixel.hue = 0.4 + rnd / 7.0;

      HSLTransformer.hsl2rgb(hslPixel, rgbPixel);
      RGBColor col = new RGBColor(rgbPixel.r, rgbPixel.g, rgbPixel.b);
      keyFrames.add(col);
    }
    return keyFrames;
  }
View Full Code Here

Examples of org.jwildfire.create.tina.palette.RGBColor

    if (Math.random() < 0.42) {
      pFlame.setBGColorRed(0);
      pFlame.setBGColorGreen(0);
      pFlame.setBGColorBlue(0);
      List<RGBColor> colors = new ArrayList<RGBColor>();
      colors.add(new RGBColor(255, 255, 255));
      RGBPalette gradient = RandomGradientGenerator.generatePalette(colors, true);
      for (Layer layer : pFlame.getLayers()) {
        layer.setPalette(gradient);
      }
    }
    else {
      pFlame.setBGColorRed(255);
      pFlame.setBGColorGreen(255);
      pFlame.setBGColorBlue(255);
      List<RGBColor> colors = new ArrayList<RGBColor>();
      colors.add(new RGBColor(0, 0, 0));
      RGBPalette gradient = RandomGradientGenerator.generatePalette(colors, true);
      for (Layer layer : pFlame.getLayers()) {
        layer.setPalette(gradient);
      }
    }
View Full Code Here

Examples of org.w3c.dom.css.RGBColor

        return parent.getCSSValueParent().getPropertyName();
    }

    public Object getUpdatedChildObjectValueFromElement(Object requester,int requesterCode)
    {
        RGBColor current = (RGBColor)parent.getUpdatedChildObjectValueFromElement(this,getCode());
        if (current != this)
        {
            if (requesterCode == 0)
                return current.getRed();
            else if (requesterCode == 1)
                return current.getGreen();
            else if (requesterCode == 2)
                return current.getBlue();

            throw new DOMException(DOMException.INVALID_ACCESS_ERR,"Internal Error");
        }
        else
            return requester;
View Full Code Here

Examples of org.w3c.dom.css.RGBColor

            if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE)
            {
                CSSPrimitiveValue primValue = (CSSPrimitiveValue)value;
                if (primValue.getPrimitiveType() == CSSPrimitiveValue.CSS_RGBCOLOR)
                {
                    RGBColor rgb = primValue.getRGBColorValue();
                    log("Current border color: rgb(" + rgb.getRed().getCssText() + "," + rgb.getGreen().getCssText() + "," + rgb.getBlue().getCssText() + ")");
                }
                else cssText += primValue.getCssText() + " ";
            }
            else cssText += value.getCssText() + " ";
        }
View Full Code Here

Examples of org.w3c.dom.css.RGBColor

                    if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE)
                    {
                        CSSPrimitiveValue primValue = (CSSPrimitiveValue)value;
                        if (primValue.getPrimitiveType() == CSSPrimitiveValue.CSS_RGBCOLOR)
                        {
                            RGBColor rgb = primValue.getRGBColorValue();
                            System.out.println("Current border color: rgb(" + rgb.getRed().getCssText() + "," + rgb.getGreen().getCssText() + "," + rgb.getBlue().getCssText() + ")");
                        }
                        else cssText += primValue.getCssText() + " ";
                    }
                    else cssText += value.getCssText() + " ";
                }
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.