Need to color my Sprites

I'm currently applying random colors to my Sprites using ColorTransform.  I'm hoping to not have to transform my colors but to just set them to different random colors in the first place.  As you can see when you go here http://www.cybermountainwebservices.com/client0/dragdrop/ and drag a Sprite off the stack the drop shadow that's applied is the same color as the Sprite when it should be black.  I'm sure that's due to the fact that a transform was applied.
function setup():void {
    for (var i = 0; i < 25; i++) {
        var square:Sprite = new Sprite();
        //square.name = "square" + i;
       var c:ColorTransform = new ColorTransform();
        c.color = (Math.random() * 0xffffff);
        square.transform.colorTransform = c;
        square.graphics.beginFill(0x000000);
        squares.push(square);
        squares[i].graphics.drawRect(0, 0, 100, 100);
        squares[i].x = i*3;
        squares[i].y = i*3;
        stage.addChild(squares[i]);

So if I'm following you correctly, you just have to remove your ColorTransform code and beginFill with your random color like so:
square.graphics.beginFill(Math.random() * 0xffffff);

Similar Messages

  • Need correct color profile settings in windows....????

    Help!  Just replaced the motherboard and now all the color profiles in photoshop are wrong....  Does anyone know the correct settings to choose in windows or to choose for the graphics card... it's an AMD Phenom II.  I open Adobe Bridge and immediately the previews lose their color which tells me this is not the correct profile the computer is telling photoshop...  can anyone help, please????

    operating system is windows 7 and the monitor is profiled correctly.... and these are raw images, so no, cannot view in another program....  and they look the same in ps as in bridge.  however, i called adobe and they told me it sounds like a graphics card issue, so i'm going to amd's website to update and reinstall drivers.... not sure what else to do.... 
    From: rogleale <[email protected]>
    To: Kelly Ferreira <[email protected]>
    Sent: Friday, June 10, 2011 11:21 AM
    Subject: Need correct color profile settings in windows....????
    Not enugh information.  Which OS?  Is your monitor profiled?  Can you see your images in any other program, eg Windows Picture Viewer?
    What happens if you open your images in PS instead of Bridge?
    Roger

  • In ALV  I need to color the records when ever material number changes

    Hi ,
    I need to color the records in alv when ever the material changes.
    for ex : I have 10 records .
    1 to 3 records same material number so yellow color
    4 to 8 records same material numberso blue color
    9 to 10 recrods same material number  so yellow color.
    Please do the favour..
    thank you.
    karthik.

    Hi,
    Have one more column in the final table as
             ROWCOLOR(4),              "reqd only if row is color
    Do the coding like this.
    Keep canging the Row number to get different colors. Like C410 etc.
      LOOP AT T_FINAL.
        IF T_FINAL-NUMBER = 'XXX'. " <b>Do your comparison operation here</b>.
          T_FINAL-ROWCOLOR = 'C510'.
          MODIFY T_FINAL TRANSPORTING ROWCOLOR.
        ENDIF.
      ENDLOOP.
    Also modify the layout giving the field as
    DATA : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
      W_LAYOUT-INFO_FIELDNAME = 'ROWCOLOR'.
    Hope this helps you.
    Regards,
    Subbu.

  • Need to color the  different textfield with different color in J2ME

    hi
    i am developing an application where i need to color the different textfield in the form with different color. but i am not able to do this even with the canvas class also. Can you please help me ? Thanks in advance..

    In J2ME, I don't think you can do that easily by setting color. If you want to use specific color in a text field, you need to construct the text box your own. Use Graphics object to draw text field (as image) and here specify a color of your choice.
    Hope this helps.
    Thanks,
    Mrityunjoy

  • What can I use to create a photo banner/collage that is free formed. I'll need background colors and ability to place 5 or more pics in a horizontal row? Does adobe have a product i can use to create this?

    what can I use to create a photo banner/collage that is free formed. I'll need background colors and ability to place 5 or more pics in a horizontal row? Does adobe have a product i can use to create this? I'm not looking for templates when creating.
    thanks
    tracy

    You can select 5 (or more images) and place them by dragging in Adobe InDesign. After creating document go to File > Place, navigate to images and select them. In InDesign start dragging and press right arrow key couple of times then release mouse button. You can export file as PDF, JPG, PNG image from File > Export.

  • Need Simple Color Picker

    Hi all,
    I think my previous question was posted in the wrong place, I need
    simple color picker.
    Perhapes, someone will say, you have to you JColorChooser, I just
    need the switch part as the highlighted part in the figure 1
    figure 1
    http://img125.imageshack.us/img125/3792/color16ml.gif
    So, I want to be as figure 2
    figure 2
    [http://img159.imageshack.us/img159/3968/color29ln.gif                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class ColorBox implements ListSelectionListener,
                                     ActionListener
        JTable table;
        public void valueChanged(ListSelectionEvent e)
            if(!e.getValueIsAdjusting())
                int row = table.getSelectedRow();
                int col = table.getSelectedColumn();
                if(row == -1 || col == -1)
                    return;
                Color color = (Color)table.getValueAt(row, col);
                String s = "red = " + color.getRed()     + "    " +
                           "green = " + color.getGreen() + "    " +
                           "blue = " + color.getBlue();
                System.out.println(s);
        public void actionPerformed(ActionEvent e)
            System.out.println(e.getActionCommand());
        private JPanel getNorth()
            JComboBox combo = new JComboBox();
            Dimension d = combo.getPreferredSize();
            d.width = 50;
            combo.setPreferredSize(d);
            JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));
            panel.add(combo);
            return panel;
        private JPanel getCenter()
            int[][] rgbs =
                { -16777216, -6737152,  -13421824, -16764160,
                  -16764058, -16777088, -13421671, -13421773 },
                { -8388608,  -39424,    -8355840,  -16744448,
                  -16744320, -16776961, -10066279, -8355712  },
                { -65536,    -26368,    -6697984,  -13395610,
                  -13382452, -13408513, -8388480,  -6710887  },
                { -65281,    -13312,    -256,      -16711936,
                  -16711681, -16724737, -6737050,  -4144960  },
                { -26164,    -13159,    -103,      -3342388,
                  -3342337,  -6697729,  -3368449,  -1        }
            Object[][] data = new Object[rgbs.length][rgbs[0].length];
            for(int row = 0; row < data.length; row++)
                for(int col = 0; col < data[0].length; col++)
                    data[row][col] = new Color(rgbs[row][col]);
            DefaultTableModel model = new DefaultTableModel(data,
                                               new Object[data[0].length]);
            table = new JTable(model)
                public Class getColumnClass(int col) { return Color.class; }
            table.setPreferredSize(new Dimension(148, 90));
            table.setRowHeight(18);
            table.setBorder(BorderFactory.createEmptyBorder(0,4,0,4));
            table.setBackground(UIManager.getColor("Panel.background"));
            table.setGridColor(table.getBackground());
            table.setDefaultRenderer(Color.class, new ColorBoxRenderer());
            table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            table.setColumnSelectionAllowed(true);
            table.getSelectionModel().addListSelectionListener(this);
            table.getColumnModel().getSelectionModel().addListSelectionListener(this);
            JPanel panel = new JPanel();
            panel.add(table);
            return panel;
        private JPanel getSouth()
            JButton button = new JButton("More colors...");
            Dimension d = button.getPreferredSize();
            d.width = table.getPreferredSize().width;
            button.setPreferredSize(d);
            button.addActionListener(this);
            JPanel panel = new JPanel();
            panel.add(button);
            return panel;
        public static void main(String[] args)
            ColorBox cb = new ColorBox();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(cb.getNorth(), "North");
            f.getContentPane().add(cb.getCenter());
            f.getContentPane().add(cb.getSouth(), "South");
            f.pack();
            f.setLocation(200,200);
            f.setVisible(true);
            System.out.println(cb.table.getSize());
    class ColorBoxRenderer extends DefaultTableCellRenderer
        public ColorBoxRenderer()
            setOpaque(true);
        public Component getTableCellRendererComponent(JTable table,
                                                       Object value,
                                                       boolean isSelected,
                                                       boolean hasFocus,
                                                       int row, int col)
            if(isSelected)
                setBorder(BorderFactory.createLineBorder(Color.red));
            else
                setBorder(BorderFactory.createLineBorder(Color.lightGray));
            setBackground((Color)value);
            return this;
    }

  • Need a Color Laser Printer!

    I am looking for a good quality color laser printer that is compatible with OSX 10.8.4.
    Most times I will be printing text documents in B&W, but also do some graphics work and need good quality images.
    Looking at the HP Laserjet Enterprise 500 Color M551DN and the Brother MFC 9560CDW
    Any thoughts??

    Second nod for Brother. We have a monochrome laser of theirs. Very dependable, and much, MUCH cheaper consumables than HP.
    The Xerox 6500DN also gets very good marks for the price. We had a 6280DN at one time, and it was also very good. The only reason we sold it was because we replaced it with a tabloid size Xerox 7500DN. There wasn't any need to keep both.

  • Need Infor coloring cells in ALV

    H all,
    I am working  ALV in webdynpro. I got two requirements.
    1)  I need to change the color for the cell Level based on the data.
    with different colors
    2)  I want to color the entire row based on the condition
    pl help to proceed
    Thanks in advance
    Kar

    Hello,
    Please see this: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2bweb%2bdynpro%2balv%2b-%2bchange%2bcell%2bcolour%2bbased%2bon%2bcontent].
    Regards.

  • Need to  color a Table row based on a Column value

    Dear Alll
    I have a requirement to color the rows of a table based on a column value in it. I have tried and surfed many useful materials over the net. but none of them solves my purpose. Please help me, I know that i can used OADataBoundValueViewObject and create a custom css file and apply color to a particular column of a table using a decode in the select statement of that VO.
    But all i need is to color a particular row with a particular color. Need your help with this ........
    Please do reply
    Best Regards
    Edited by: Antony Jayaraj on Mar 27, 2012 8:54 PM

    These posts might help you.
    How to change the row color based on Condition
    Can we colour the rows in the column of a table
    Regards,
    Peddi.

  • Help needed for color, etc

    okay i took my dual 2.0 and upgraded to the below, plus some extras like a 24" hd monitor, i'm looking to upgrade some more, like get the matrox mxo and another monitor, etc.
    1. how likely will i be able to use color(i don't have anything to play with yet)
    2. i just got an hvx200 and am looking to shoot narrative in 24fps/1080
    is it reasonable to do this on my machine or do i need to scheme on how to get a macpro8x, i mean i have an agp card right now. and if not what do you guys recommend, i don't want to drop more cash(get in more debt), and then have to go back to the forums to find out i still don't have it.

    Going back to film...
    The path that I have used, trying to work out the least resistance, varies a little depending on the source. I know its technically possible to send anything from min-DV to 2K/4K and "they" will deal with it ="$$$$". If you want to send something, say ArriLaser-ready... then we're talking files that don't need a lot of re-jigging. 1920x1080 10bitLogRGB sequential .dpx files broken into "reels" that correspond to a comfortable fit on a 2,000 foot mag are what is indicated when you are working in Digital Original. A pure Digital Intermediate (sourced on 35mm neg, scanned and graded in 2K/4K) will want to have its native resolution preserved throughout the process. Not many low-cost systems available to do that. And that's just the file throughput. You will need probably a minimum of 6TB of fibre-channel to match the bitrate requirements, and as far as I know, the minimum AJA offering is the Kona3 that will at least support Dual-Link 4:4:4, as well as HSDL 2K. You will want a cinemagrade monitor (I use the eCinema DCM-23) and a characterized projector. I've got a Christie DW-30 that can sit behind a LUT-processor. That brings us to LUT.
    Look-Up-Tables come in 1D and 3D. 1D's basically are for quick and dirty gamma-like adjustments to synthesize a display/whitepoint media migration. To do this so that the entire gamut of a cross-media export will hold no surprises requires a 3D LUT, which essentially remaps every RGB value in an original image to where it will land in its target colourspace... maybe the simplest concept to start modelling this is to think about your original video RGB camera sensor. It produced an image that will be fine on most electronic displays. However, those core RGB values cannot, do not and will not translate directly to the way that the emulsion layers on negative, or internegative film will reproduce them. A vast amount of effort is expended on getting the translation right, and it still depends on so many factors (film batch, chemistry, age and so on) that what you get on the day is what you get. But we're getting there!
    I guess in short what I'm saying is that you need to decide how much of the process you want to be responsible for -- that will be at least directly proportional to the investment required.
    Probably to be continued....
    jPo

  • Need to color and increase the font size of the text in Excel Attachment

    Hi ,
    I have a requirement where i need to send an Excel attachment as email.
    and In the Excel I need to increase the font size and add colour to the header text in order to distinguish it form the item details.
    Is there a way that we can do it.using ALE programming .....if yes how can we do it...??
    regards
    Abaper

    Hello
    * Row color change
    FORM set_rows_fill USING number TYPE i
                                  colorindex.
      CALL METHOD OF excel 'Rows' = rows EXPORTING #1 = number.
      CALL METHOD OF rows 'SELECT'.
      CALL METHOD OF excel 'SELECTION' = selection.
      CALL METHOD OF selection 'Interior' = interior.
      SET PROPERTY OF interior 'ColorIndex' = colorindex.
      SET PROPERTY OF interior 'Pattern' = 1.
    ENDFORM.                    " SET_COLUMN_FILL
    * Font change
    FORM WRITE_ROW USING USING LEFT TOP BOTTOM RIGHT.
      DATA: bcells TYPE ole2_object,
            ecells TYPE ole2_object.
      CALL METHOD OF excel 'CELLS' = bcells EXPORTING #1 = top #2 = left.
      CALL METHOD OF excel 'CELLS' = ecells EXPORTING #1 = bottom #2 = right.
      CALL METHOD OF excel 'RANGE' = range EXPORTING #1 = bcells  #2 = ecells.
      CALL METHOD OF range 'SELECT'.
      CALL METHOD OF range 'Font' = font.
      SET PROPERTY OF font 'Name' = 'Arial Cyr'.
      SET PROPERTY OF font 'Size' = 12.
    ENDFORM.

  • Is there anyway to change/add more highlighter colors in Preview? I need more colors aside from those already provided in the app.

    I'm a law student and I use the preview app extensively for reading cases. I need more highlighter colors aside from those already provided and it seems that there's no possible way of adding/changing the colors.

    Unlike Preview, the Adobe Reader application allows you to change PDF highlight (comment) text colors via a standard Apple color chooser. Click Tools on the Reader Toolbar, and then Comment. The second button in the Comment Annotation section is highlight text, and defaults to canary yellow.
    Highlight the document text, and then two-finger tap/control-right-click that highlighted text. On the contextual menu, you will see Properties…. The properties panel has a color well set to yellow. Click this color well, and a standard Apple color chooser will appear that allows you more creative control over your highlight color. When you click a color in the color chooser, it is not automatically updated in the color well, which remains dark grey. When you quit the color chooser, the selected color is updated in this color well and in your document. The next text that you select to highlight will receive a default yellow highlight.

  • Need lab color info in Camera Raw.

    I would like to be able to see lab color info in addition to the RGB numbers in ACR.  The ACR color correction sliders are lab in nature, and the lab numbers are easier for color correction than the RGB numbers.
    I

    Thanks for the reply. No, I don't have a painting background, so your comments concerning  layered transitions are new to me, at least in the analytical.
    I have a great deal of problems with color names. The huge array of oils, watercolors and such in an arts supply store with their fanciful names put me to rout! While I do explore the emotional side of camera work, knowing the numbers is equally important because of my long years in electrical engineering. I know, for instance, that the perception of a certain color is influenced by it's surrounds, sometimes profoundly. So, when I am looking at what appears to be a white reference, I want 120,120,120, or whatever the value is. I may not stay there, many times I don't but I know where things are headed.
    I can't imagine that my D90 or D80, for that matter, cannot see aqua. That would mean all the cameras Nikon produces using the D90 sensor have this problem.
    Did I see aqua? Back to nomenclature. What is aqua? Aqua means among other things water. Aquarius means water bearer.Here is one dictionary's set of definitions. Look at the Thesaurus. All those names are the same? Greenish blue is the same as bluish green?
    http://www.thefreedictionary.com/aqua
    I'll not likely ever be a painter. Painters, like musicians know these terms. Music is filled with them with plenty of overlaps. I can listen to a pice of music never heard before and get within one semitone of it on the piano first try. But I don't have perfect pitch. So I assume if I were to take up painting and devote the next 10,000 hrs or so to developing that skill, I may indeed recognize the subtle colors by name.
    Aqua= greenish blue. Well, I thought cyan was greenish blue, but there is no equivalency between the two as applied in Photoshop.. For me anyway.
    I've seen that blobiness myself, Tim. Next time I'll go deeper into it Thanks.
    Jeff, if you are reading this and have gotten this far, let me say this about "experience" and "creditability"  First off, you know I have experience in software testing. Never in my work did I ever have someone prove his point by pulling rank. Never. Software people get pretty deep into the subject. I am certain that TK and others worked HSL over quite thoroughly. The Orange and the Purple sliders do give me a freedom to finesse as never before, and I revel in it. But if your folks are anything like the people I worked with, someone winds up keeping them honest and away from wishful thinking, which gets more and more necessary with which to deal as release approaches. My job was, besides the technical validation work like smoke test etc, was to also inform them when the emperor is losing his clothes.  What was nice about it is that we, the validation group, had the power to stop on a dime, and force a resolution. So I have no compunction in speaking up here.
    Nor am I concerned about being vetted by you. It's not the first time I have been confronted by people here saying "Do you know who he is?" as if I should never dare to be so outspoken. My answer is yes, but do they know who I am?
    One really can't know, and vetting all your responders takes way too much time and bandwidth. So, assume some experience and creditability is where the best in the world have always proceeded, like Einstein.
    Lawrence

  • Needing to color correct a bunch of blue clips!

    I recently did a shoot and the other shooter I hired gave me a bunch of blue video. What is the fastest way I can color correct those clips? I used a color corrector 3 way on those clips but it didn't really take the blue out. I then copied the settings from my camera (it was a 2 camera shoot) and then pasted the attributes to the problem clips and again I didn't see much of a difference with the blue being removed. Am I doing something wrong?
    Message was edited by: DVX100Shooter

    Using the 3-way there is a feature...white balance. There is an eyedropper next to the HIGHLIGHTS wheel. Use that to click on something in the image that is supposed to be white. The 3-way will then adjust the settings to make that white.
    Same with the LOWS. Use that eyedropper to hit something that is supposed to be black.
    Shane

  • I need another color where two objects meet

    Hello
    Sorry, bad subject, but I cant do it better.
    So, I have two objects. One circle and one rectangle.
    The circle is on top of the rectangle. Just in one corner, so its not covering all of the rectangle.
    I would like to have another color where these two objects meet.
    Which is the easiest way to do this ?
    Thanks / E.......

    Perhaps you should consider makign 3 shapes... One for the circle, one for the rectangle, and one for the intersection. Determining the intersection might be fun, but is not an impossible task, especially if you can represent your shapes as equations (which for circles and rectangles is easy) Good luck to you.

Maybe you are looking for