Sharpening the edge on a Circle Crop

Quick one here, after cropping a circle in a video (changed the clip to composite mode>Travel Matte Luma after generating a cirlcle), the edge of the circle has a gradual fade, whereas i wanted a sharp edge.
Could anyone help me out with editing the circles properties?
Thanks a lot.

Double click the clip with the circle generator on it, to send it to the Browser.
Click the Controls tab. Set the Softness value to zero.

Similar Messages

  • Why does the edge of a rectangle show through image placed on top?

    I can't figure out why the edge of my yellow filled rectangle shows through the images I place over top of it.
    A very thin but visible line appears in my image when the rectangle has no stroke, and a thicker, dark line appears when I apply black stroke to the rectangle.
    I've tried arranging the rectangle to the back and the images to the front, but it doesn't work.
    Another strange thing about this phenomenon is that it sometimes appears in the Indesign document itself, and sometimes, it is only appearing when I convert to PDF (using X-3:2002 preset).
    Any ideas on what's going on. It's driving me crazy.
    Thanks.

    I did try this change to the pdf settings before, and it doesn't appear to have an effect.
    Here are is a sample screen shot of the issue. This is a small part of the PDF created as you have suggestion with the crop image to frames turned off. The line is visible in both the Indesign workspace and the pdf. This is what it looks like without stroke around the yellow box. The image is a png produced in photoshop elements. I've zoomed in quite a bit (that text is 15pt), but it seems like it would show up in a print job.

  • How to to print an .indd document with a border around the edge?

    I have an Indesign document that I want to print with a slight border around the edge.
    I print this after exporting it as a PDF.  But when I choose the various combinations of 'print printer's marks' in the export settings, none of them seem to work.
    I want just a simple thin border line around the edge of the document to print.  I don't want the interior body to print (which it sometimes does).
    I know this can be done, because on some of my .indd documents it works... but I can't figure out what I did to get it to print that way.
    HELP!
    and thanks....
    jn

    Thanks... the visible guides setting change took away the purple interior rectangle. 
    But it still doesn't print the border outline.
    Here in text form is a summary of the .indd file settings that does print a border correctly, as I like it to.
    The relevant paragraph under Marks and Bleed has crop marks off... and document bleed settings on.
    I wonder what I'm missing?  Sometimes I wished Adobe just used plain english... like 'print border outline of document'!
    Thanks!
    jn
    Print Preset: [Default]
    Printer: Canon Pro9000
    PPD: N/A
    PPD File: N/A
    General
        Copies: 1
        Collate: N/A
        Reverse Order: Off
        Pages: N/A
        Sequence: N/A
        Spreads: On
        Print Master Pages: Off
        Print Layers: Visible & Printable Layers
        Print Non-printing Objects: Off
        Print Blank Pages: Off
        Print Visible Guides and Baseline Grids: Off
    Setup
        Paper Size: US Letter
        Paper Width: 8.5 in
        Paper Height: 11 in
        Page Orientation: Portrait
        Paper Offset: N/A
        Paper Gap: N/A
        Transverse: N/A
        Scaling: 100%
        Constrain Proportions: On
        Page Position: Upper Left
        Thumbnails: Off
        Tiling: Off
    Marks and Bleed
        Crop Marks: Off
        Bleed Marks: Off
        Registration Marks: Off
        Color Bars: Off
        Page Information: Off
        Printer Mark Type: Default
        Crop Mark Weight: 0.25 pt
        Mark Offset from Page: 0.0833 in
        Use Document Bleed Settings: On
        Bleed Top: 0 in
        Bleed Bottom: 0 in
        Bleed Left: 0 in
        Bleed Right: 0 in
        Include Slug Area: Off
    Output
        Color: Composite RGB
        Text As Black: Off
        Trapping: N/A
        Flip: N/A
        Negative: N/A
        Screening: N/A
        Simulate Overprint: Off
    Graphics
        Send Data: Optimized Subsampling
        Download: N/A
        Download PPD Fonts: N/A
        PostScript®: N/A
        Data Format: N/A
    Color Management
        Document Profile: sRGB IEC61966-2.1
        Color Handling: Let InDesign Determine Colors
        Printer Profile: Document RGB
        Preserve RGB Numbers: Off
        Proof Profile: N/A
        Simulate Paper Color: N/A
    Advanced
        Print &as Bitmap: On
        Bitmap Resolution: 300
        OPI Image Replacement: N/A
        EPS: N/A
        PDF: N/A
        Bitmap Images: N/A
        Transparency Flattener Preset: N/A
        Ignore Spread Overrides: N/A

  • Commercial Printing with images bleeding to the edge

    I have produced an A4 tri-fold flyer with images that "bleed" to the edge. I exported the document as a PDF file (Best quality) and copied it to a CD. My printer said it was fine apart from the image which they normally receive bigger than A4 and bleeds out of the edges of the document. This is so they print it bigger than necessary and then cut it to ensure the image fills the entire space without a white boarder.
    I tried "page set up" as boarderless printing but when I printed it on my printer it expanded the document and cropped the edges.
    My question is, is there any way I can produce an A3 sized document which has my A4 flyer in the middle with all the guide lines and cropping lines showing as per a normal DTP software?

    my systems says unable to save
    One way is to do as one did a decade ago when the printing functionality of ColorSync was supported through a menu in the Print dialog. Thus try the following from File > Print > (Unnamed Scroll Box:) Copies & Pages within which you scroll down to ColorSync to get a dialog for ColorSync > Quartz Filter: Whatever name your filter has, including Untitled if you cannot saved it. Don't touch the menu Color Conversion - it determines whether your ICC printing profile is subset into a PostScript Color Rendering Dictionary.
    In PDF Retouch component for PDF/X I picked one of the large gamut colour spaces from www.eci.org, the one I picked was for positive plate on bright art paper. An on the fly filter gets my Destination Profile, that is, my custom large gamut ICC type PRTR printer profile for the intended printing condition / OutputIntent, and for an untagged RGB JPEG it inserts the Generic RGB Profile as it should. If I tag the JPEG myself e.g. with my display profile, then that gets embedded as my source profile. SFNT-housed TrueType is embedded in subset form.
    In PDF Policies, I disabled colour management of spot colours and separations. I am not sure Apple has licenced CIELa*b 2 degree standard observer measurements for the many, many spot colour swatch libraries out there. With regrd to managing DCS separations, this is possible in LinoColor 6 followed by Photoshop 6, but you need the right source separation and I suspect that if there is none embedded then the Generic CMYK Profile gets assigned which is not going to get the right result. DCS EPS is problematic for a range of reasons, and responsibility for what colours are intended and what colourants should be laid down to form them rests with the person who creates the DCS EPS, so in my opinion they should be passed through as pree-evaluated.
    /hh

  • How to get a coloured bar at the edge of a video

    Hi,
    I have a very funny few minutes of video of a family event that I am using for the closing moments of home movie. Unfortunately, my idiot cousin is in the background "flicking the bird to the camera" the entire time. Fortunately, she is near the edge of the screen so I have an idea how to "remove" her but I do not know how to do it.
    My idea is to to put a black (or any colour, really) bar across the edge of the screen and I can have the credits appear there.
    However, I do not know how to get a coloured bar to appear over part of a video.
    Can anybody help?
    Regards

    NeddySeagoon wrote:
    .. My idea is to to put a black (or any colour, really) bar across the edge of the screen and I can have the credits appear there.
    Can anybody help?
    why not cropping the video.. ?
    • click on clip
    • click on crop-tool
    • crop/Zoom-in .. => cousin gone, away, digital nirvana ..

  • How to create a simple circle crop in FCP7?

    I have two separate videos and basically I want one of them in the background and then the other on top of it with a circular crop. Anybody know a way to do this?

    Put your background on V1.
    Go to the Browser and click the Effects tab.
    Go to Video Generators > Shapes > Circle. Place this on V2.
    Put the video you want to crop on V3.
    Right click on V3 and choose Compostite Mode > Travel Matte Luma.
    A double click on V2 will send it to the Viewer, where you can adjust the size whilst observing the adjustment in the Canvas.

  • Did you know the tablets are now available with the Edge program?

    While tablets are now able to be purchased with the Edge, the Device Payment Plan has been discontinued. So, if you want to pay over 12 months, to keep unlimited data, you are out of luck. Either full price, or lose it and use Edge.
    Just another way for Verizon to get rid of unlimited.

    I would check again. The problem is when you went to a corporate store and that is the only way to get it. The stores were telling customers that Verizon's device payment plan was only for tablets.
    That is the first lie on their parts. The second thing the store would tell customers that if you used the plan you would still lose unlimited data, lie two.
    You could not grandfather in a plan such as the device payment plan. Grandfathered to whom? Those who already choose it and are on it?  Those who got grandfathered in how? Maybe a wrong choice of word in your post.
    Like Ann154 the plan is still showing on the Verizon wireless site.
    I also called my former account executive at Verizon and he said he knew of no discontinuance of the program.
    So unless you have advance information via working for Verizon wireless I would wait for the news release.
    In your case I would go to a corporate store and insist on them honoring the Device Payment Plan. Maybe mention your attorney, or a state regulatory agency etc.
    Good Luck

  • I updated my computer to the new software and now the iPhoto has a circle with a line through it.  When I try to update, it pops up to say "These apps cannot be accepted by your apple id". Then will say "update unavailable with this apple id" how do i fix

    I updated my computer to the new software and now the iPhoto has a circle with a line through it.  When I first try to open it the pop us says: "You can't use this version of the application "iPhoto" with this version of OS X. Version: 9.2.1"  When I try to update, it pops up to say "These apps cannot be accepted by your apple id - These apps were already assigned to another Apple ID and they will be available in that Apple ID's purchases list.  If you don't have access to that Apple ID and want to receive future updates, you will need to purchase the application".  I checked and there is nothing under the "purchases" in my App store.  Then will say "update unavailable with this apple id - This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canceled." Then the third pop up says "We could not complete your request. There was an error in the App Store.  Please try again".  Just want to know how do to fix.

    After I upgraded to Mavericks I was also having this message when I tried to update. There was a previous post about this problem which offered this simple solution which worked for me:
    b0n0b0
    Re: Recently upgraded to Maverick from SnowLeopard. Unable to get updates from App store.
    Mar 15, 2014 9:05 AM (in response to Terence Devlin)
    Got it! Thanx.  What I did was go to my account, check that they had my new ID and Password which they did, then hit reset button. All fixed.

  • Anyone know how to get out of the edge program?

    I dropped my old phone in the toilet and it was not time for an upgrade. Therefore, I went to the get a phone under the Edge Program. I specifically asked the rep at the store if I could go back to two year contract after I paid off the 50% of the program and he said yes. I hate this program. I only did it because I needed a phone and was not due an upgrade.  Now I understand that the only way I can get out of the Edge Program is to pay off the entire balance of the phone...which is outrageous. I no longer want to pay monthly installments. I want to pay a one time 2-year upgrade fee and start a new contract. It is my understanding my only choice is to pay off the entire edge or return the phone to Edge up. Problem is my phone has a small crack that I didn't realize was there until my son told me about it.  If you look at the phone normal you don't see it but if you look at it from an angle you can see the crack.
    I only want to get out of Edge. I will have paid off 50% by January and want to go back to a normal 2-year agreement...but I do not want to return the phone although I will if I have to, that is if they will take it back with a crack.  Otherwise, I would need to pay the insurance to get a new phone and then turn it in. This still cost me money. I am contemplating just paying off the rest of the balance and then maybe it will say I can get a new two-year contract, like it does for the other phones on my account.
    I have been a verizon customer way back when it was called Bell Atlantic Mobile and you would think they could do something for me since I have been a good customer all these years.  I don't want to leave because I have four other phones and a tablet with Verizon but I will if I have too. I would obviously go to AT&T. 
    Does anyone, maybe a verizon rep, have any options for me?

    rellis64 wrote:
    ... I only want to get out of Edge. I will have paid off 50% by January and want to go back to a normal 2-year agreement...but I do not want to return the phone although I will if I have to, that is if they will take it back with a crack. 
    Does anyone, maybe a verizon rep, have any options for me?
    I'm not a Verizon rep, just another customer like you. EDGE is a payment plan, or Rent to Own, or a lease program if you intend to keep upgrading.  If you want off the EDGE program, you can pay off the total balance due on the phone and keep it, and then you can start a new two year contract with a different phone. 
    In order to return the phone at the 50% point, and be done with EDGE, the phone has to be in good working condition.  The crack means it's not in good condition, so you will be charged the full price, whether you plan to EDGE up or go contract.  Either way, you'll end up paying for the EDGE phone, over time or in a lump sum.  It was one way to get a new phone when you were not eligible for the discounted price on your previous phone, but you need to fulfill that obligation before you can get another discounted phone.
    Do you want a new phone/different phone?  Look at eBay or swappa, or check with your friends who may have something you can borrow.  Or simply keep using the EDGE phone until it's paid for, then look at options at that time.

  • Have been a Verizon customer since I got my first cell phone in my 30's - I am 50 now! A year ago, I stupidly opted to get a new phone on the EDGE program because I was trying my first Samsung device and was not sure I would like it having been an IPhone

    have been a Verizon customer since I got my first cell phone in my 30's - I am 50 now! A year ago, I stupidly opted to get a new phone on the EDGE program because I was trying my first Samsung device and was not sure I would like it having been an IPhone user for years.I was right! Or so I thought.... The Note 3 has been horrible. I am on my second phone(replaced it under warranty) and it still freezes, shuts off on its own, and will not come back on for long periods of time. Having had enough, I decided to EDGE Up to another device. On March 16th I tried to edge up my device online but was unable to. I immediately called to figure out what the problem was. Back in October I had a mix up in my billing where I had set up a payment. It was not done properly by customer service and as a result my line was cut off. I called the EXACT day it went off, filed a complaint about the lack of follow through for my arranged payment, and thought I had it straightened out as the payment was made that same day. That incident, although it was a Verizon error, caused my Edge Contract to be "hotlined". I spent an hour on the phone on March 16th clearing the whole mess up. When the conversation ended, the Verizon representative admitted it was a Verizon error, documented everything, and then told me she was filing a release for the hotline hold that would take a couple of days. Her name was Linda and I stupidly trusted what she said.
    The days passed as I prepared to have a major foot surgery and to get my classroom straight before I would be out recovering for 3 weeks. All the time, my Samsung continued to glitch out like it has since I got it! While sitting on the couch recovering, I decided to deal with the phone issue again and EDGE UP. I figured 10 days latter, Linda would have taken care of the issue. Unfortunately, I faced the same problem and was told it was not eligible to edge up at this time. BACK on the phone again, 2 supervisors, 3 customer service reps. ( JOE from New York being the rudest customer service rep. I have EVER worked with) and 4 frustrating HOURS latter, Jason, the equally rude supervisor from Rochester, New York, informed me that Linda gave me BAD information, there was NOTHING he could do, and I am NOT eligible until April 14th!!!!! The WORST experience I have EVER had with a company. They were completely inept, rude, and not concerned about my time, my frustration, or the problems I was facing with their product in the LEAST. I have 4 LINES on Verizon that I am going to talk to Sprint about buying out. It was a horrible experience, and I can NOT believe I have no recourse or anyone to talk to....

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • Anybody knows how to bounce them off the edge of the frame ...

    I want them to change position randomly and smothly and also bounce off the edge of the frame. i will be so happy if you can help me.
    Here is the code:
    FlatWorld:
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    * This FlatWorld contains random number(between 1 and 10) of disks
    * that can be drawn on a canvas.
    public class FlatWorld
        // initialize the width and height of the Canvas in FlatWorld...
        final int WIDTH = 400;
        final int HEIGHT = 400;
        // create random numbers of disks (1-10) using array.
        Random myRandom = new Random();
        int numbersOfDisks = myRandom.nextInt(10) + 1;
        Disk myDisk[] = new Disk[numbersOfDisks];
        // The Canvas on which things can be drawn or painted...
        private Canvas myCanvas;
        * creates a Canvas and disks
       FlatWorld()
            //Creates our disks using array.
            for( int i = 0; i < numbersOfDisks; i++ )
                myDisk[i] = new Disk(WIDTH,HEIGHT);
            //creates a canvas and store it in the instance variable...
            myCanvas = new Canvas(WIDTH,HEIGHT,this);
       /* Draws our disks using array.
        * @param graphicsContext The Graphics context required to do the drawing.
        * Supplies methods like "setColor" and "fillOval". */
       public void drawYourself(Graphics graphicsContext)
            for (int i = 0; i < numbersOfDisks; i++)
                myDisk.drawDisk(graphicsContext);
    public void change()
    final int movementScale = 8;
    for (int i = 0; i < numbersOfDisks; i++)
    int deltax = (int)( Math.random() - 0.5 * movementScale );
    int deltay = (int)( Math.random() - 0.5 * movementScale );
    myDisk[i].move(deltax, deltay);
    Disk:
    import java.awt.*;
    import java.util.*;
    * The Disk class is used to creates a disk with a random position
    * and a random color and a random diameter (between 1/20 width and 1/4 width)
    public class Disk
        /* instance variables */                    
        private int x;
        private int y;
        private int Diameter;
        private Color randomColor;
        private int red, green, blue;
         * Constructor for objects of class Disk
        //creat a disk at a 2D random position between width and height
        public Disk(int width, int height)
            /* Generates a random color red, green, blue mix. */
            red =(int)(Math.random()*256);
            green =(int)(Math.random()*256);
            blue =(int)(Math.random()*256);
            randomColor = new Color (red,green,blue);
            /* Generates a random diameter between 1/20 and 1/4 the width of the world. */
            double myRandom = Math.random();
            Diameter = (width/20) + (int)(( width/4 - width/20 )*myRandom);
            /* Generates a random xy-offset.
             * If the initial values of the xy coordinates cause the disk to draw out of the boundry,
             * then the x and/or y will change their values in order to make the whole disk visible in
             * the boundry. */
            int randomX = (int)(Math.random() * width);
            int randomY = (int)(Math.random() * height);
            int endPointX = randomX + Diameter;
            int xPixelsOutBound = endPointX - width;
            if ( endPointX > width)
                randomX = randomX - xPixelsOutBound;
            int endPointY = randomY + Diameter;
            int yPixelsOutBound = endPointY - width;
            if ( endPointY > width)
                randomY = randomY - yPixelsOutBound;
            setXY(randomX , randomY);
            /* replace values of newX and newY (randomX and randomY) into the x and y variables
             * @param newX The x-position of the disk
             * @param newY The y-position of the disk */
            public void setXY( int newX, int newY )
                x = newX;
                y = newY;
            /* Draw a disk by its coordinates, color and diameter...
             * @param graphicsContext The Graphics context required to do the drawing.
             * Supplies methods like "setColor" and "fillOval". */
            public void drawDisk(Graphics graphicsContext)
                graphicsContext.setColor(randomColor);
                graphicsContext.fillOval( x , y, Diameter , Diameter );
            public void move (int deltaX, int deltaY)
                x = x + deltaX;
                y = y + deltaY;
    }[i]Canvas:import java.awt.*;
    import javax.swing.*;
    public class Canvas extends JPanel
    // A reference to the Frame in which this panel will be displayed.
    private JFrame myFrame;
    // The FlatWorld on which disks can be create...
    FlatWorld myFlatWorld;
    * Initialize the Canvas and attach a Frame to it.
    * @param width The width of the Canvas in pixels
    * @param height The height of the Canvas in pixels
    public Canvas(int width, int height, FlatWorld sourceOfObjects)
    myFlatWorld = sourceOfObjects;
    // Set the size of the panel. Note that "setPreferredSize" requires
    // a "Dimension" object as a parameter...which we create and initialize...
    this.setPreferredSize(new Dimension(width,height));
    // Build the Frame in which this panel will be placed, and then place this
    // panel into the "ContentPane"....
    myFrame = new JFrame();
    myFrame.setContentPane(this);
    // Apply the JFrame "pack" algorithm to properly size the JFrame around
    // the panel it now contains, and then display (ie "show") the frame...
    myFrame.pack();
    myFrame.show();
    * Paint is automatically called by the Java "swing" components when it is time
    * to display or "paint" the surface of the Canvas. We add whatever code we need
    * to do the drawing we want to do...
    * @param graphics The Graphics context required to do the drawing. Supplies methods
    * like "setColor" and "fillOval".
    public void paint(Graphics graphics)
    // Clears the previous drawing canvas by filling it with the background color(white).
    graphics.clearRect( 0, 0, myFlatWorld.WIDTH, myFlatWorld.HEIGHT );
    // paint myFlatWorld
    myFlatWorld.drawYourself(graphics);
    //try but if --> {pauses the program for 100 miliseconds} dont work -->
    try {Thread.sleep(70);}
         catch (Exception e) {}
         myFlatWorld.change();
         repaint();

    Here is my contribution:
    FlatWorld:
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    * This FlatWorld contains random number(between 1 and 10) of disks
    * that can be drawn on a canvas.
    public class FlatWorld {
       // initialize the width and height of the Canvas in FlatWorld...
       final int WIDTH = 400;
       final int HEIGHT = 400;
       // create random numbers of disks (1-10) using array.
       Random myRandom = new Random();
       int numbersOfDisks = myRandom.nextInt(10) + 1;
       FlatWorldDisk myDisk[] = new FlatWorldDisk[numbersOfDisks];
       // The Canvas on which things can be drawn or painted...
       private FlatWorldCanvas myCanvas;
        * creates a Canvas and disks
       public FlatWorld() {       
            //Creates our disks using array.
            for( int i = 0; i < numbersOfDisks; i++ ) {
                myDisk[i] = new FlatWorldDisk(WIDTH,HEIGHT);
            //creates a canvas and store it in the instance variable...
            myCanvas = new FlatWorldCanvas(WIDTH,HEIGHT,this);
       /* Draws our disks using array.
        * @param graphicsContext The Graphics context required to do the drawing.
        * Supplies methods like "setColor" and "fillOval". */
       public void drawYourself(Graphics graphicsContext) {
            for (int i = 0; i < numbersOfDisks; i++) {
                myDisk.drawDisk(graphicsContext);
    public void change() {
    final int movementScale = 8;
    for (int i = 0; i < numbersOfDisks; i++) {
    int deltax = (int)( Math.random() - 0.5 * movementScale );
    int deltay = (int)( Math.random() - 0.5 * movementScale );
    myDisk[i].move(deltax, deltay, WIDTH, HEIGHT);
    public static void main(String[] args) {
    new FlatWorld();
    FlatWorldDisk:
    import java.awt.*;
    import java.util.*;
    * The FlatWorldDisk class is used to creates a disk with a random position
    * and a random color and a random diameter (between 1/20 width and 1/4 width)
    public class FlatWorldDisk {
       /* Constants */
       private static final int DIRECTION_NW = 1;
       private static final int DIRECTION_N  = 2;
       private static final int DIRECTION_NE = 3;
       private static final int DIRECTION_W  = 4;
       private static final int DIRECTION_E  = 5;
       private static final int DIRECTION_SW = 6;
       private static final int DIRECTION_S  = 7;
       private static final int DIRECTION_SE = 8;
       /* instance variables */               
       private int x;
       private int y;
       private int diameter;
       private Color randomColor;
       private int red, green, blue;
       private int direction;
        * Constructor for objects of class FlatWorldDisk
       //creat a disk at a 2D random position between width and height
       public FlatWorldDisk(int width, int height) {
          /* Generates a random color red, green, blue mix. */
          red =(int)(Math.random()*256);
          green =(int)(Math.random()*256);
          blue =(int)(Math.random()*256);
          randomColor = new Color (red,green,blue);
          /* Generates a random diameter between 1/20 and 1/4 the width of the world. */
          double myRandom = Math.random();
          diameter = (width/20) + (int)(( width/4 - width/20 )*myRandom);
          /* Generates a random xy-offset.
           * If the initial values of the xy coordinates cause the disk to draw out of the boundry,
           * then the x and/or y will change their values in order to make the whole disk visible in
           * the boundry. */
          int randomX = (int)(Math.random() * width);
          int randomY = (int)(Math.random() * height);
          int endPointX = randomX + diameter;
          int xPixelsOutBound = endPointX - width;
          if (endPointX > width) randomX = randomX - xPixelsOutBound;
          int endPointY = randomY + diameter;
          int yPixelsOutBound = endPointY - width;
          if (endPointY > width) randomY = randomY - yPixelsOutBound;
          setXY(randomX , randomY);
          /* Generates a random direction */
          direction = (int)(Math.random() * 8) + 1;
       /* replace values of newX and newY (randomX and randomY) into the x and y variables
        * @param newX The x-position of the disk
        * @param newY The y-position of the disk */
       public void setXY(int newX, int newY) {
          x = newX;
          y = newY;
       /* Draw a disk by its coordinates, color and diameter...
        * @param graphicsContext The Graphics context required to do the drawing.
        * Supplies methods like "setColor" and "fillOval". */
       public void drawDisk(Graphics graphicsContext) {
          graphicsContext.setColor(randomColor);
          graphicsContext.fillOval( x , y, diameter , diameter );
       public void move(int deltaX, int deltaY,
                        int width, int height) {
          int dx = Math.abs(deltaX);
          int dy = Math.abs(deltaY);
          int olddir = direction;
          int newdir = olddir;
          switch(olddir) {
             case DIRECTION_NW: { int newX = x - dx, newY = y - dy;
                                  if ((newX < 0) && ((y - dy) < 0))         newdir = DIRECTION_SE;
                                  else if (((newX) >= 0) && ((y - dy) < 0)) newdir = DIRECTION_SW;
                                  else if (((newX) < 0) && ((y - dy) >= 0)) newdir = DIRECTION_NE;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     x = newX; y = newY;
                                  break;
             case DIRECTION_N:  { int newY = y - dy;
                                  if ((newY) < 0) newdir = DIRECTION_S;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     y =newY;
                                  break;
             case DIRECTION_NE: { int newX = x + dx, newY = y - dy;
                                  if (((newX + diameter) > width) && (newY < 0))       newdir = DIRECTION_SW;
                                  else if (((newX + diameter) > width) && (newY >= 0)) newdir = DIRECTION_NW;
                                  else if (newY < 0)                                   newdir = DIRECTION_SE;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     x = newX; y = newY;
                                  break;
             case DIRECTION_W:  { int newX = x - dx;
                                  if (newX < 0) newdir = DIRECTION_E;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     x = newX;
                                  break;
             case DIRECTION_E:  { int newX = x + dx;
                                  if (newX + diameter > width) newdir = DIRECTION_W;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     x = newX;
                                  break;
             case DIRECTION_SW: { int newX = x - dx, newY = y + dy;
                                  if ((newX < 0) && ((newY + diameter) > height))     newdir = DIRECTION_NE;
                                  else if (newX <0)                                   newdir = DIRECTION_SE;
                                  else if ((newY + diameter) > height)                newdir = DIRECTION_NW;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     x = newX; y = newY;
                                  break;
             case DIRECTION_S:  { int newY = y + dy;
                                  if ((newY + diameter) > height) newdir = DIRECTION_N;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     y =newY;
                                  break;
             case DIRECTION_SE: { int newX = x + dx, newY = y + dy;
                                  if (((newX + diameter) > width) && ((newY + diameter) > height)) newdir = DIRECTION_NW;
                                  else if ((newX + diameter) > width)                              newdir = DIRECTION_SW;
                                  else if ((newY + diameter) > height)                             newdir = DIRECTION_NE;
                                  if (newdir != olddir) {
                                     direction = newdir;
                                     move(deltaX, deltaY, width, height);
                                  else {
                                     x = newX; y = newY;
                                  break;
    FlatWorldCanvas remains unchanged.
    Hope this will help,
    Regards.

  • Why am I being charged for the Edge program

    I recently went into a Verizon Wireless store to get some questions answered about my account and upgrade eligibility. Both my husbands and my phone were having issues and we needed to upgrade or find some other options. We began to speak with an employee at the store and were told we could upgrade to the Edge program so we could receive new phones and not wait another 5 months to our upgrade date. My phone would make random calls, text people out of nowhere, and my husbands would randomly shut down or end calls, as well as his screen was cracked. The employee stated that we could upgrade to the edge program and all we needed to do was send in an iPhone (the phone brand we were using). He said we would either need to get the screen replaced on my husbands phone as well as take my phone to apple to get it diagnosed and get that problem fixed. It sounded like an excellent deal and we asked if we could just buy a good used phone from a used website and send those phones in instead of going through the trouble of getting our current phones fixed to send in. The employee stated that as long as the screens weren't cracked and they were an iPhone 4 or higher then we would be fine. So we bought two used iPhone 4's that were in excellent condition and had no mechanical issues. We sold the phones we had to offset the cost to purchase the two used ones. We got signed up for our new edge program and sent in the two used iPhones. After a few months we received our Verizon bill and it was over $900! We called customer service and they began to tell us that our phones were broke and didn't pass the mechanical performance test so we were charged a fee. So we not only had to pay for those two used phones to send in and pay for our new phones, we are now being charged a $750 fee for these phone being so called broke? We were told that because we broke the edge contract there is no way to get a refund for this fee and have to pay it! This is the most RIDICULOUS thing I have ever heard of and is about to cause a huge appeal to this situation. I will be getting an attorney and am looking for any others who have had issues with the Edge program or similar problems. I will be filing suit against Verizon Wireless for this issue and if we get enough people with similar problems with the Edge program, then we will file a Class Action Lawsuit against Verizon Wireless to get the money back that they have stolen from us, the customers. We will also file for Verizon Wireless to pay for personal loss and harm these fee's have caused. Please reply to this thread and if you have the same problems then we will add you onto the Class Action Lawsuit so you can get back what you have lost or are losing. Thank you. Verizon Wireless Customer Support

    Sounds like you Early Edged before finishing your contract.  So Verizon told you you could turn in just any iPhone for the Edge program?  I always thought you had to turn in the phone that you had not finished paying for yet, the one under contract.

  • I want to download an app, but whenever I click on it, it does the spinning in a circle thing but never asks for my password and never downloads, I want to be able to download apps again! What to do?

    I want to download apps, but whenever I click download, it does the spinning in a circle thing but never asks for my password and never downloads, I want to be able to download apps again! How do I fix this?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Welcome to Apple Support Communities
    Don't download MacKeeper. Users complain about this app and it damages OS X. Also, Mac OS X knows how to take care of itself, so you don't need any other cleaning application that may damage OS X. See > https://discussions.apple.com/docs/DOC-3691

  • On the EDGE of leaving Verizon!

    I have had my phone service with Verizon for 6 or 7 years now, and the last couple of years have been nothing but trouble. I received a flyer in the mail 3 days ago about the Edge Single Line Plan http://www.verizonwireless.com/wcms/consumer/shop/shop-data-plans/single-line-data-plans.html. First I called Verizon to make sure I understood the plan and to make sure I was eligible to change to this plan. The person I spoke to was very informative and very nice. She answered all of my questions, and I had a lot of them. I felt like I had all the answers I needed, but yesterday I did an online chat just to verify a couple of things. This plan was going to make my bill go down. I get a cheaper plan and a new phone for less than I was paying. So, I decided to go to the Verizon store yesterday after work to look at the phone. I wanted to make sure I really wanted that phone. Please keep in mind, I had all of my facts in order, I knew what I wanted and I knew how much it should be. I had to wait about 20 minutes until someone helped me. When the lady came up to me and asked how she could help me, I told her I wanted to change my plan and what phone I wanted. When we were going over the plan, she was trying to put me back on the More Everything Plan, I kept telling her that was not the correct plan and she kept telling me that was the only plan they had for the Edge Program. I told her I had already talked to two different Verizon people about it, the attitude came out in her at that point. I said, just forget it, change it back to my old phone. She looks at another guy that works there and he said, No we don't have that plan anymore, it ended in February. Again I said, I spoke to someone yesterday about this and today before I came into the store. He just kept saying, No we don't have that plan anymore. If I had not known what I was talking about and verified everything before I went in, I would have been screwed and called a liar! I cannot even begin to put in words exactly how offended I am. Not only that, but the sales girl gathered up a bunch of stuff just assuming I would buy it. I did because I felt pressured into it. I hate going into the store, there is no customer service anymore! They are just trying to see what they can get out of you. I have 14 more days before I can't take this phone back, I am seriously thinking about jumping off this ship and going with another company! As many things as I have read in here, you would think Verizon would get a clue! The manager of that store should be told, but there is NO way I am going back in there unless it is to take this phone back.

    No one knows but store stock versus online stock are two different things. It's not something to be angry about if stores get a certain allotment. It wouldn't be fair to those that choose to shop in store not to have an opportunity to get what they want just because online depleted their stock. If you can go to a store (and you aren't sure you plan on switching providers) and see if they have the one you want. If so you can cancel your current pre-order (as long as it hasn't shipped yet or generated a shipping label) and then purchase that device in store. Not idea as you probably wanted to avoid the store but if waiting isn't an option for you then this is something you can try.

Maybe you are looking for

  • Upgrade issues OBIEE 10g to 11g along with OBIA upgrade

    Hi, I have to upgrade OBIEE 10.1.3.4.1 to OBIEE 11.1.1.5 along with OBIA 7.9.6.1 to 7.9.6.5(Informatica 8.6.1 to 9.0.1) at my client location and I have very little knowledge on it. and want to know/have help documents for upgrade. And if anyone in t

  • Message from Disk Utility:  iBook HD "Volume needs repair"

    I just ran the "Verify Disk" routine and got this error message: "First Aid Failed" because "the underlying task reported failure on exit". In verifying my "iBook HD" volume, the following errors were reported: (1) "incorrect number of thread records

  • How do I retrieve a file typed on iCloud online (Pre iCloud Drive) once I have upgraded to iCloud Drive?

    Hello all, My friend has typed his essay on iWork for iCloud on a PC, and then he upgraded his account to iCloud Drive, and he has no access to his essay anymore since it says that because you're account is upgraded you cannot access your files on iW

  • CCMS Long Description

    Dear Experts, We have a requirement. The alerts that are raised in a PI System to be transferred to CCMS with long Desciprtion. The function module that populates details into CCMS is SXMB_MON_ALERT_MSG_ANALYZE from SXMB_MONI(Runtime Workbench) The T

  • Stock Transport Order Number

    Stock Transport Order Number in which table this is being used. want to know the table name.