how do I substitute one colour for another, in every object, of an eps file? [closed] - vector-graphics

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a vector image that I need to edit and I have inkscape.
What I want to do is to substitute one set of coulours of the palette by another. For example, my image has a palette with several tones of orange, green and blue. What do I have to do if I want to substitute the orange part of the palette with another color?

Here is one way to select all items of exactly the same colour (fill). It is also possible to look for other style categories, such as the stroke colour etc.
1) Imagine we wish to select all the orange items on the canvas. Select one of those and go to the Fill and Stroke dialog. Copy the colour code from the RGBA field (highlighted red in the image below).
2) Open the search dialog (Find) (Ctrl + F) and copy the colour code in the field Style:
3) Get rid of the last two characters of the colour code. Add the line fill:# right before the colour code (also in the Style: field!). Hit the Find button, and all the items filled with the given colour should be selected.
4) Change the colours of the selected objects in the Fill and Stroke dialog.

Related

How to draw arbitrary interactive shapes at any position on the screen using Xamarin.Forms? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
There is a need to draw several polygons of different shapes and place them close to each other in certain places on the screen. In this case, it is necessary to be able to make each of the figures interactive, i.e. have their own properties and actions when tapped. In this case, the figures must be on a transparent layer and be able to overlap each other. Is that possible?
For example i need draw square 300x300, but each of the four sides must be independent line with own name and Tap Action: Line1-0:0-300:0, Line2-300:0-300:300, Line3-300:300-0:300 and Line4-0:300-0:0. If you add lines one by one to the stacklayout, together they do not form a square. I tried to use absolutelayout, but as a result everything is drawn as it should, but I can only press Line4, because it overrides all others.
Even if straight lines can be constrained with AbsoluteLayout.SetLayoutBounds, this will not always work with more complex shapes, including diagonals. for example, a diagonal overlaps all the space equal to its width and height.
I use Xamarin.Forms Shapes to create polygons.
Use tap gesture recognizer to add click actions.
Here is the xaml code:
<StackLayout Orientation="Horizontal">
<Polygon Points="0 48, 0 144, 96 150, 100 0"
Fill="Blue"
Stroke="Red"
StrokeThickness="3" >
<Polygon.GestureRecognizers>
<TapGestureRecognizer
Tapped="TapGestureRecognizer_Tapped"
/>
</Polygon.GestureRecognizers>
</Polygon>
</StackLayout>
For more information please check Xamarin.Forms Shapes and tap gesture recognizer

Specifying colour tints in CSS: RGB vs RGBA [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I need to specify a number of variants for black and white colors. I've been given the variants as a percentage of the solid color.
As a non-designer, the question I have is, should I simply specify them as RGBA, or should I use something like photoshop to get the actual #hex RGB value and use that.
The reason I ask is because some of the variants have very low opacity and will naturally take on the background tone, rather than be a true solid grey.
If you have a background colour other than white, then as you say the background colour will show through where your RGBA colours are partially transparent. To avoid this you need to use fully opaque colours - so you need to calculate rgb equivalents.
For 'variants of black and white' (ie shades of grey), this is pretty easy, since grey shades have equal R, G and B values:
100% grey (ie black) = (0, 0, 0) = #000000
50% grey = (128,128,128) = #808080
0% grey (white) = (255,255,255) = #FFFFFF
See here for more examples.
EDIT:
If you need tints of colours other than grey (not entirely clear from your question), it's a similar process (scaling your R, G and B values towards 255 as you approach white), which is described in the answers to a previous question: 'Given an RGB value, how do I create a tint (or shade)?'

CSS change child colors based on math?

Alright, I'll admit that title seems a bit cryptic, but here's the situation:
I have a list of actors on a page with photos and short bios, each one is its own <div>. Let's say that I have seven actors on my page, and I want the text colors in their boxes to change, say, to create a rainbow, so actor 1 would be red, 2 would be orange, 3 would be yellow, and so on. Can I do this without having to manually specify style="color:rgb(whatever)" on every div? Let's say I want the color values to change dynamically if I add more people to the list or take them away, so I'd specify a beginning color value of rgb(255,0,0) for red and and end value of rgb(255,0,255) for violet and somehow fill in the rest, so that each subsequent box has a different text color but all together they make a rainbow.
...or would I be forced to use JavaScript to do this?
No you need not required to red color manually you can use CSS nth-child selectors please check below tutorial
Click here!

Evenly distribute objects within another object [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Is there a simpler way to even distribute multiple objects within the bounds of another object?
I've included a picture to help illustrate what I want done.
The green portion is my artboard, the gray portion is the main body and I would like item1-6 to be even distributed within the bounds of the white box. Typically to achieve the desired result I have to create additional objects (represented by the red lines) and place one at the left end of my box, one at the right end, and one between each item, and then use the distribute evenly button and remove the red lines afterwards.
I imagine there is a faster way but I can't seem to find it. Any ideas are appreciated.
Okay, this is slightly fiddly, but hopefully this will seem quite inuitive once you've done it once or twice.
Short version;
Find the width of your container.
Select container and objects - then set container to Key Object.
Enter width of container into Align window: Distribute Spacing, divide the figure by the number of objects, then click Horizontal Distribute Center.
Group your objects and center them to your container. Ungroup them again, if desired.
Long version;
1. Work out the width of your containing box (or artboard, if you are distributing your items to that). If, for example, you have a rectangle you can simply select it and look at the 'W' (width) value at the top of the window (click on Transform to reveal the info if you're working on a smaller screen). Just remember this number - nothing else.
2. Select all of your items AND your container. Click on the container again to make it the 'Key Object' (you should see that its selection edge becomes distinctly fatter).
3. If necessary, open up your ALIGN window (Window > Align). With the window visible, you should see three rows or sections from which to choose - 'Align Objects', 'Distribute Objects' and 'Distribute Spacing'. If the latter is missing, you may need to click on the little up/down arrow symbol next to the 'Align' tab title a few times in order to expand all of the options.
4. Ensuring that you still have all of your items selected and your container set as the Key Object (The 'Align To' box should automatically be set to 'Align to Key Object' in recognition of this), enter the container width you took note of earlier into the 'Distribute Spacing' box - and append /x where x = the number of items you have. So, if your box is 200 pts wide, and you have 5 items, you would enter 200/5 - this will just save you having to do the maths. Illustrator will automatically divide your starting figure and (in the case of this example), it would change to 40 pt (200 divided by 5).
5. Now click on the Horizontal Distribute Center button and all of your items will be set to the correct spacing. They probably WON'T be properly aligned with your container, though, so ...
6. In order to prevent your nicely spaced items being messed up by the next step, DE-SELECT the container (so only your items are selected), group them together - either with the keyboard shortcut CTRL+G (or COMMAND+G on Mac), or by going to Object > Group.
7. With the items grouped, re-select your container (so container AND group of objects are selected), make the container the Key Object again - if you don't want to see it move) and click on Horizontal Align Center. Your items will now be properly centered in your container and can be safely ungrouped if you wish (Ctrl+Shift+G / Command+Shift+G).

Create a grey box background within an Ax 2009 report

I always seem to be having fun working with the Ax 2009 product until I have to touch the now deprecated reporting tool. Today I've been asked to highlight some column titles and a totals area with a grey or shaded background. The *tutorial_ColourLines* report isn't what I need as we do not want to colour the whole report section. We only want to change the background color for labels or better yet, inside a shape.
Thanks
Revisiting the TrucosAx.com link in Spanish I posted in the questions comments, I've obtained an imperfect way of producing the silver backgrounds.
Create a Text object but makes sure it is behind all of the other controls, by moving it up the list of objects in the report section.
Set the new object as having the same dimensions and position as our original column title or label.
Change the original column title background colour.
Change the foreground and background colour of our new text object as well.
Fill the text object's Text property with garbage: OOOOOOOOOOOOOOOOOOOOOOOOOOO etc.
Any better suggestion is most welcome.

Resources