2 Replies Latest reply on May 21, 2010 11:58 AM by xbytor2

    Fill color for new layer in Ph cs4 js

    Yuliaart Level 1

      One more question. I need to make a  layer white. Here what I tried and it doesn't work:


      var  myWhiteLayer = doc.artLayers.add();
      myWhiteLayer.name =  "WHITE  LAYER";

      var myWhite = new CMYKColor ();
      myWhite.cyan  = 0.0;
      myWhite.magenta = 0.0;
      myWhite.yellow = 0.0;
      myWhite.black  =0.0;
      myWhiteLayer.fillColor = myWhite;

       

      Thank you  for your help.

      Yulia