Creating a uniform gradient inside a rounded rectangle

Hi
I am trying to create a uniform gradient in a rounded rectange. I have tried a gradient mesh, but the 2 sides are too dark and I have also tried a normal gradient, but that does not create a dark shadow on the 2 sides as per the picture attached. How can I create a smooth uniform gradient along all sides please?

And to that end this is done with two inner glows applied to one objet with two fills then made into a graphic style then changing the color using different blending modes offer other options as well.
Takes experimentation

Similar Messages

  • Fill a rounded rectangle with a gradient paint with "new RoundRectangle2D"?

    Hello,
    at the moment I have to do a lot of Java2D to draw a customized GUI. Now it comes to a simple task, filling a rounded rectangle with a gradient paint. I have a solution for this - but I don't know if it is bad to do it this way:
    private void drawBackground( Component component, Graphics2D graphics2d ) {
         int w = component.getWidth() - 1;
         int h = component.getHeight() - 1;
         graphics2d.setPaint( gradientPaint );
         RoundRectangle2D backgroundShape =
              new RoundRectangle2D.Float( 0, 0, w, h, 10, 10 );
         graphics2d.fill( backgroundShape );
    }This is very easy and it works. The backdraw is, that on every call of "drawBackground", which is called on a repaint() method by Swing, a "new RoundRectangle2D.Float" will be created. I don't know how "expensive" it is to create a new RoundRectangle2D. On the other hand, I don't know how to fill a rounded rectangle with a gradient paint without a RoundRectangle2D.
    When I do it this way, I worry that at a later time, when I created a lot of custom components that all create shapes on a repaint, the GUI may become horrible slow or has a huge memory footprint.
    Well, I would like to hear some kind of "this is okay" (maybe because those Shape implementation are all not very memory consuming and the instanciation in Java is not very time consuming) by you Java2D experts :) Or, of course, how I could do it better.
    Thanks a lot for your help!

    patb1 wrote:
    on every call of "drawBackground", which is called on a repaint() method by Swing, a "new RoundRectangle2D.Float" will be created. I don't know how "expensive" it is to create a new RoundRectangle2D.
    When I do it this way, I worry that at a later time, when I created a lot of custom components that all create shapes on a repaint, the GUI may become horrible slow or has a huge memory footprint.You could do as many UI delegates in the Swing code do with Rectangles: maintain a RoundRectangle2D as a field and set its attributes when it is to be painted (setRoundRect(double x, double y, double w, double h, double arcw, double arch)).
    db

  • Creating Rounded Rectangle Outline Colour Issue

    Hi all,
    I am wanting to create a rounded rectangle, with an outline or boarder with a colour black (Or other colours). But i am unable to find where i'm able to add an outline colour as an option before drawing out the shape or after drawing the shape.
    The only option i am able to do is changing the background colour of the shape created, and i was wondering if you are able to add an outline when creating or after creating a rounded rectangles or other shapes...
    Thanks,
    James

    But i am unable to find where i'm able to add an outline colour as an option before drawing out the shape or after drawing the shape.
    Styles -> Stroke.

  • PSE 5: Creating a rounded rectangle not filled in.

    I want to create a rounded rectangle with the rounded rectangle tool, but I don't want it filled it with color, just outline / stroke.  I see it's been discussed here but I can't figure it out.  Any advance would be great.  

    Another way, in addition to the ways posted above, is to draw out
    your shape.
    Then go to layer styles and find the style set named visibility.
    There are three styles there: show, hide and ghosted. Pick the
    hide style and your color will be hidden. Then Alt+double click
    on the shape thumbnail to bring up the layer style settings
    dialog. At the bottom of the dialog is a stroke option, where you can
    choose your stroke color, size and opacity.
    The advantage of this way is you can edit the settings later by double
    clicking on the small fx beside the shape layer.
    If you wish to restore the color later, you can use the show style in the
    visibility layer style set.
    Later versions of photoshop elements work the same way.
    MTSTUNER

  • Bug report about create new footprint with Rounded rectangle in 3D info Bottom

    I create new footprint with rounded rectangle in 3D info Bottom,the rounded rectangle must be in bottom,but In fact,the rounded rectangle
    created in top layer.i think it's wrong.
    I used ultiboard 10.1.357.

    Hi,
    Thank you for reporting this. This has been a long standing issue with Ultiboard and we are looking into resolving this.
    There is a work around although a very inconvenient one. You can set the height to what you require and use a negative offset to move the shape to the other side of the board. The 3D shape will appear on the other side, but in reality is just shifted, not mirrored.
    Hope that helps. We apologize for the inconvenience.
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

  • Rounded Rectangle Tool: Only creates outlines

    Desired solution:  a rounded rectangle filled with color #00628b, 40px high, 200px long.
    Situation:  The rounded rectangle tool produces an outline in the my foreground color.  I have been unable to make this tool create a rounded rectangle that is the color I listed above.
    Thanks,
    Confused_2_much11

    Pick the right tool in the options bar. (Ignore the pen – the choice is the same for the rounded rectangle.)

  • How to create a rounded rectangle?

    I can't figure out how to create a rounded rectangle in Flash
    8... Any one
    want to help me with this?
    Best Regards,
    Chris Jumonville
    iMedia Web Design
    503.277.3553

    You can ignore this. I figured it out.
    Best Regards,
    Chris Jumonville
    iMedia Web Design
    503.277.3553
    "Chris Jumonville" <[email protected]> wrote in
    message
    news:ej6l1r$ano$[email protected]..
    >I can't figure out how to create a rounded rectangle in
    Flash 8... Any one
    >want to help me with this?
    >
    > --
    > Best Regards,
    >
    > Chris Jumonville
    > iMedia Web Design
    > 503.277.3553
    >

  • Why are my rounded rectangles distorted?

    When I use the Rounded Rectangle shape on the Tools Palette, it is getting distorted in the PDF. The other shapes look good. I'm attaching a sample.
    I'm using FrameMaker 8.2p277. To create the PDF, I do File>Print and select Adobe PDF as a printer. On the PDF Options, I have selected the same joboptions that I've been using.
    I double-checked in Distiller and I do not have "Convert gradients to smooth curves" or "convert smooth lines to curves" selected. Those settings have caused trouble in the past.
    What else should I check?
    Thanks,
    Cheryl

    OK. I stumbled upon the answer. When creating a PDF by choosing the Adobe PDF printer in FrameMaker, I had to:
    1. On the Print Document window, select Setup button. That opens the Print Setup window, where I choose the Adobe PDF printer. Then I click Properties, which opens the Adobe PDF Document Properties window. On that window, the Default Settings shows "Standard". If I click the Edit button next to that, it opens the Standard - Adobe PDF Settings window. If I drill down on "Advanced" I can see that "Convert smooth lines to curves" is selected. So then I cancel out of that window, back to Adobe PDF Document Properties. On that window, I select my own joboptions for Default Settings, which I know does not have "Convert smooth lines to curves" selected. Click OK twice.
    2. Now, back on the Print Document window, I select PDF Setup. I make sure that my own joboptions is selected from the list and I click Set.
    Now, the file is generated properly and my rounded rectangles look perfect:
    If I omit either of those steps, then my rectangles are distorted. I think they look like worms that have been stepped on:
    To answer the others who responded to my posts:
    Sheila, I'm attaching a MIF file, just in case you're still curious.
    Shlomo--My Distiller is version 8.1.3.
    Thank you for your time.
    Cheryl

  • Jagged edges when using rounded rectangle

    Hi,
    Hope someone can help me here.
    I am designing a website for myself (first timer) and have created menu bars and buttons using the rounded rectangle tool.
    The images look good but the edges are pixelated.
    I am using anti-alias and have also try feathered but to no avail.
    When I preview the site in the browser I can still see the pixelated edges (I assumed it might be a magnification or resolution issue)
    I am not using any images, have not extracted etc. I am simply using the rounded rectangle to create a menu bar and then colouring it in as a gradient, adding text and that's pretty much it.
    Any help given here will be greatly appreciated.
    Thanks,
    Eddie

    You shouldn't see anything in the browser that you don't see in Fireworks. If you have magnified your view by zooming your browser, then reset it to normal zoom. If that isn't the problem...
    One thing you can try is to make your navigation images 2 or 4 times larger than you want, export the files, import them and reduce them to 50% or 25%, depending. Sometimes, you can get what appears to be a smoother edge by reduction than you can with Firework's anti-aliasing of rounded shapes.

  • How can I simply create a text frame with perfect rounded ends?

    I'm recreating a new edition of a book that was originally created in Quark. It uses round-ended text frames. When using the simplest method of corner options, the ends aren't proper semicircles, even though the radius is set to half the height of the frame.
    The other problem is that I can't reduce the width sufficiently to make it look balanced. I use the direct selection tool to close in the right-hand end, so that I don't distort the shape. There's no right indent for the paragraph, but as I reduce the width the text breaks into two lines, even though I've greater space after the text than the left indent. My best solution was to create the shape in Illustrator and copy and paste into InDesign, assign text content, centre thte text vertically, use 3mm left indent. I still couldn't pull the right-hand end in tight enough. So I had to resort to making a group of the lozenge shape with a normal rectangular text frame on top.
    Does anyone know why these problems occur, and can Adobe improve the corner option?

    One last refinement: It's convenient if the script allows you to Undo/Redo its actions -- let me add that for completeness' sake. The following is the complete script again, no further editing required.
    //DESCRIPTION:Overlay round corners on a single textframe
    // A Jongware Script 2-Apr-2012
    app.doScript(function(textframe){
    if (textframe instanceof Group && textframe.pageItems.length == 2)
    roundedRect = app.selection[0].polygons[0];
    textframe = app.selection[0].textFrames[0];
    textframe.properties = {strokeWeight:roundedRect.strokeWeight,strokeTint:roundedRect.strokeTint,strokeColor:roundedRect.strokeColor};
    roundedRect.remove();
    app.selection[0].ungroup();
    left = textframe.geometricBounds[1];
    right = textframe.geometricBounds[3];
    height = textframe.geometricBounds[2] - textframe.geometricBounds[0];
    center = (textframe.geometricBounds[2] + textframe.geometricBounds[0])/2;
    radius = height/2;
    leftRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,left-radius,center+radius,left+radius]});
    riteRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,right-radius,center+radius,right+radius]});
    rectBetween = textframe.parent.rectangles.add({geometricBounds:[center-radius,left,center+radius,right]});
    roundedRect = rectBetween.addPath([leftRounded,riteRounded]);
    roundedRect.properties = {strokeWeight:textframe.strokeWeight,strokeTint:textframe.strokeTint,strokeColor:textframe.strokeColor};
    textframe.properties = {strokeWeight:0};
    app.select(textframe.parent.groups.add([roundedRect,textframe]));
    }, ScriptLanguage.JAVASCRIPT, app.selection[0], UndoModes.ENTIRE_SCRIPT, "Overlay Round Corners");

  • How to make ROUNDED rectangle default style cp8?

    Hi,
    I want my smart shape style to be rounded rectangle, not squared. I have set up my object styles with color and all that good stuff, but there is no way I can see to make it the rounded shape instead of the squared off shape.  I also tried to change one on the properties panel thinking I could "apply to all" but that option is not available.  I am trying to use smart shapes as my captions in recording and it sure would be nice not to have to touch every single one and change it to rounded - defeats the purpose of styles, yes?
    Using CP8, latest version (I checked and there are no updates available), on a windows machine, 64 bit.
    Thanks!!!
    Kelly

    Rick, that option has effect on the captions inserted while creating a software simulation.
    @LMS_90 About which shapes as Text container are you talking? Object styles for Shapes do not include the 'form' of the shape. And at this moment, you cannot set such a form as being included in the default style, with the one exception that Rick points out: added text during a simulation capture.
    Even for Success/Failure/Hint shapes you cannot define that it always has to be a rounded rectangle. For Question slides, you can set them up in the master slides, and if you use always master slides with placeholders it is also possible. Quite a lot of the default themes have rounded rectangle shapes as text container for Title and Subtitle.
    Also in the Properties the 'form' is not part of the style: if you apply the default Shape Style that includes Stroke, Fill, Character properties, Margins, Shadow...but not the shape itself. That is the reason why 'Apply to all' cannot be used for the shape form.
    This is probably not the answer you expected, I try to change as much as possible in the Master slide.

  • Round rectangle edges are blurred...

    I have seen people complain about this, but no work arounds. The blurry eddges I see on the rounded portion of round rectangles is awful. IS there a workaround?
    Graham

    It is currently a shape. The line I'm referring to is created dynamically using actionscript.
    [CODE]
    //----BLACK ROUND RECT BOX----//
    var square:Sprite = new Sprite();
    addChild(square);
    square.graphics.lineStyle(3,0x000000);
    square.graphics.drawRoundRect(0,0,425,250,36);
    square.graphics.endFill();
    square.x = 87;
    square.y = 35;
    [/CODE]

  • How can I create a diagonal gradient?

    Hi there,
    Literally all I want to do is create an angled gradient so that the brightest spot is in the top left corner and the darkest is in the bottom right corner of a rectangle. Any insight?
    Thanks.

    This is one way of doing a gradient.
    TREX
    Step 1. Create Shape
    Step 2. Fill shape with gradient from colour swatch
    Step 3. Keep shape selected and select ‘Gradient Tool’ from tool box
    Step 4. Just drag and slide Gradient Tool to desired angle, the tool will show a line that you can add colour to if needed. (there are plenty of tutirials out there)

  • Rounded rectangle tool malfunction

    I have one particular image that I'm unable to apply the rounded rectangle tool to.
    Here's my steps:
    Flattened image.
    Double clicked to unlock.
    Created mask.
    Clicked on rounded rec.
    Clicked on solid fill.
    Set at 90pix ( radius )
    Pulled rounded rec tool diagonally across image.
    Created rounded rec shape obscuring image below.
    NOW COMES THE PROBLEM:
    Unable to activate rectangle "marching ants".
    Unable to click on inverse in Select.
    Unable to created separate rounded rectangle shape.
    I have done this successfully  with other images , but this one befuddles me.
    What am i missing here?
    Thank You.

    davidn46 wrote:
    I've already clearly stated what it is I want to do.
    I followed your steps If you look in the history palette you should see that I did. I do not see any problem that is why I wrote I do not know exactly what you did could you please post a screen capture of your problem, you wrote
    Here's my steps:
    Flattened image.  ------------------------------------------Third step in history
    Double clicked to unlock. -------------------------------- fourth step make background layer a normal layer
    Created mask. ----------------------------------------------  fifth step Add layer mask
    Clicked on rounded rec. ---------------------------------- does  not record in history
    Clicked on solid fill. ---------------------------------------- does  not record in history
    Set at 90pix ( radius ) ------------------------------------- does  not record in history
    Pulled rounded rec tool diagonally across image.---sixth step
    Created rounded rec shape obscuring image below.?? there is no image below there only the converted backgroung

  • Rectangle colors differ from rounded rectangle colors...

    Thought I was going crazy...but realized after a few tests that rectangle colors clearly do not match rounded corner rectangle colors - even if you use the magnifying glass to copy??
    Sadly, the colors look like they match inside iWeb but the published output is where they differ...
    Here's an example of the problem...
    http://web.mac.com/jburt/example/test.html
    I first noticed this as I was trying to place a rectangle over the bottom of a rounded rectangle - to give the appearance of just rounded corners at the top...however since I cannot make the colors match at all this has become impossible - along with other similar things...
    Anyone experienced this bug and know of any kind of fix?
    Thanks.

    SamC wrote:Looks like something to do with bold text. Could you post your .Xdefaults?
    I would, but I'm affraid both my useraccount and the root account don't have a .Xdefaults file. I thought it was only used if you'd wish to change the default X settings, so I figured: no .Xdefaults = default X settings.
    EDIT:
    I found out it has got something to do with the swapping of colors: I use "xterm -rv" to get a white-on-black terminal, look at what I get when I start a non-video-reversed xterm:
    EDIT:
    Fixed!
    Last edited by whordijk (2008-12-13 18:28:30)

Maybe you are looking for

  • Application URL not working properly

    We have a custom application hosted on weblogic8.1 cluster. And this is in production environment. What we observed was, I am using FireFox browser and works fine for me. And I noticed it did not work a few days ago only once. However, most of the ot

  • Mouse Over - Help

    Hi, I'm using FlixPro 8.5. I have several hundred QuickTime movies I wish to convert to Flash 8 SWF for use in a website. On page load I want the visitior to see the first frame of the movie and then on mouse over play the movie at a larger size. You

  • I don't have the option "update software" in my settings. How can I update my ipod 4.3.3 wirelessyly??

    I don't have the option "update software" in my settings. How can I update my ipod 4.3.3 wirelessly!? I go to general settings and it's not there.I'm trying to update it to ios5 or higher. Please help ..<

  • APEX  3.1.2 upgrade Question.

    Hi All, Currently we have APEX 3.0.1.00.08 on Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi Linux. Is it possible to upgrade to 3.1.2 on the same database? Is the any issues if I upgraded to 3.1.2? My current version of application

  • Error : Internal Error in SAP OLE document container control

    Hi , In recruitment module, when i try to display letter in applicant activity above error occurs. i need to set SAP Script in standard text , Please let me know how to make SAP Script settings. Regards, Rahul