Questions tagged [fill]

fill refers to the process of assigning and rendering a color or pattern to the set of coordinates within the outline of a shape.

References

1838 questions
11
votes
4 answers

Fill the outside of a rectangle

I would like to draw a rectangle in WPF (by code) and to fill the outside of it. Here is an example : The outside of the rectangle is grey (with low opacity), and the fill of the rectangle is trasparent.
Ben
  • 3,972
  • 8
  • 43
  • 82
11
votes
3 answers

Centering a WPF control

I have a window where I add a new UserControl to (with an image), I simply want to center the control in the middle of the screen (both vertically and horizontally). I can only get the vertical one to work. I'm gonna swap content in the DockPanel…
H4mm3rHead
  • 553
  • 1
  • 12
  • 28
10
votes
8 answers

How to make a div height to fill available space

I have a 3 column layout with some details below the columns. You will notice that one of the column's height is greater than the others'. I'd like the other two divs to automatically fill the remaining space (up to the blue div). The text will be…
Kornelije Petak
  • 9,412
  • 15
  • 68
  • 96
10
votes
1 answer

How to fill an area within a polygon in Python using matplotlib?

Here is a code I tried: from scipy.spatial import ConvexHull points = np.random.rand(30, 2) # 30 random points in 2-D hull = ConvexHull(points) import matplotlib.pyplot as plt %matplotlib inline corners=[] for simplex in hull.simplices: …
Nataly
  • 323
  • 2
  • 10
10
votes
1 answer

Filling All column of a table with specific value in PostgreSQL?

I have a table and I wanted to fill a column with a specific value. Sample table: It includes temperature column which is empty and I want to fill all the rows of the relevant column with 4.56. +------------+------------------+ |temperature |dt …
A.Amidi
  • 2,502
  • 5
  • 25
  • 37
10
votes
3 answers

Python list transpose and fill

I have a list of lists such that the length of each inner list is either 1 or n (assume n > 1). >>> uneven = [[1], [47, 17, 2, 3], [3], [12, 5, 75, 33]] I want to transpose the list, but instead of truncating the longer list (as with zip) or…
kojiro
  • 74,557
  • 19
  • 143
  • 201
10
votes
2 answers

ggplot2: Set alpha=0 for certain points depending on fill value

I'm currently working on a project that involves creating plots very similar to examples in Hadley's ggplot2 0.9.0 page regarding stat_density2d(). library(ggplot2) dsmall <- diamonds[sample(nrow(diamonds), 1000), ] d <- ggplot(dsmall, aes(carat,…
Jared Eccles
  • 127
  • 1
  • 7
9
votes
2 answers

Android seekbar set custom style using nine-patch images

I am trying to create a custom-styled seekbar. I have two nine-patch images one is a gray stretching bar search_progress.9.png (background color) and the other is a green stretching bar search_progress_bar.9.png (foreground color). I use this xml as…
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
9
votes
1 answer

Can an SVG object have both a fill colour and a fill pattern?

I'm working with SVG using the Raphael library. I can apply a fill colour to an object like so: circle.attr({fill: "#ff0000"}); And this also works (though the Raphael documentation doesn't mention it): circle.attr({fill: "url(pattern.png)"}); I…
shipshape
  • 1,682
  • 2
  • 17
  • 33
9
votes
3 answers

Expand DataTable to fill height in Flutter

I have a problem with flutter. I need to fill a DataTable in the height of screen. I tried to add the dataTable inside a Flex widget, but I don't get changes. When I set the heigh of the Container, that's work let me a white space at the button of…
9
votes
0 answers

Sprite Kit Make an inverse SKCropNode

I need to make an inverse crop I need to make that instad to crop the fill mask crop the not fill area of the mask, I don´t know if it is possible , any ideas? Thanks
Effectoxx
  • 111
  • 3
9
votes
1 answer

Using CSS approach how to set an image to fill a path in SVG?

I want to create a CSS class to fill a path with image that can be applied on any SVG path and fill that path with image. The image must be stretch to fit that path. To achieve this; I create a pattern with image tag and set the width and height as…
Harish Khattri
  • 93
  • 1
  • 1
  • 4
9
votes
1 answer

Highlight parts of matlab plot

I have a matlab plot that looks like this: Where the Y values for each of the subplots are stored in single dimensional arrays. What i would like to do is to find an area where the top graph is above a certain height say 0.5. I would also like to…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
8
votes
3 answers

Changing fill color of MovieClip Actionscript 3

i want to ask, how to change only fill color of an instance on the stage - i can do it by using ColorTransform object, but it changes color of the whole instance, not just the fill. I want to change only the fill color, not the stroke color. can…
Dungeo
  • 177
  • 2
  • 7
  • 16
8
votes
2 answers

Linear gradient in SVG symbol

I have a svg sprite with trhat contains a . I am filing a in this same with this gradient by fill="url(#id)". However, when I load the with in other document, the does not load. I…
Andrés
  • 81
  • 1
  • 3