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
7
votes
1 answer

filling under step functions in gnuplot

I am using Gnuplot to draw step functions from an input file: plot 'myFile' using 1:2 with steps I want to fill underneath the plot. something like plot 'myFile' using 1:2 with filledcurves But Gnuplot fill underneath the diagram by drawing a…
Hamed
  • 474
  • 5
  • 17
7
votes
3 answers

Flood fill recursive algorithm

I'm trying to make an algorithm that could fill an int array in c#. Basically, as the fill tool in MS Paint, I have a color and if I choose (x,y) coordinates in the array, it replaces all the neighbours with the same initial color with the new…
Pimeko
  • 73
  • 1
  • 6
7
votes
3 answers

How to fill a flot line graph without opacity?

How can i fill a flot line graph with no opacity? lines: { show: true, fill: true, lineWidth:1 }
Sweetz
  • 344
  • 1
  • 4
  • 17
7
votes
2 answers

WPF Ellipse with BackgroundColor and Image

I'm developing a Windows Phone application and I have some Ellipses. Is it possible to have a background image on them AND a background color? When I looked for it, VS only allows me to change the Fill property with an image but didn't allow me to…
Armando Freire
  • 417
  • 2
  • 7
  • 19
7
votes
2 answers

OpenGL glColorPointer repeat colors?

Imagine that you've got one of these guys: (source: codesampler.com) Aka GL_TRIANGLE_STRIP. If you wanna color it using different colors, you could use: glColorPointer(4, GL_UNSIGNED_BYTE, 0,…
quano
  • 18,812
  • 25
  • 97
  • 108
7
votes
3 answers

Fill area between two connected components in MATLAB

I have a binary image that represents a number in MATLAB: I'd like to fill all the digits. The desired result is: The only thing I found was the imfill function, but that wasn't really helpfull since I've lost my inner data (the 9's inner circle…
user1240792
  • 334
  • 1
  • 4
  • 14
6
votes
1 answer

Android - Fill bitmap with colour

I'm working with Android and I really need a fast way to get a bitmap of a predetermined size to be filled with a predetermined colour. The following code is not working for me however; Bitmap input is a mutable bitmap int old =…
gav
  • 29,022
  • 23
  • 65
  • 90
6
votes
6 answers

Android: stretch layout between two fixed LinearLayouts

this is my layout (image): https://i.stack.imgur.com/wPx04.jpg What I want to do is make the 1st LinearLayout 50dip high (this is already OK), then have the 3rd LinearLayout also 50dip high from the bottom up - and then make the 2nd LinearLayout…
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
6
votes
1 answer

How to make an SVG element transparent (using SVGweb)

In a SVG document, I want to make a -element transparent. I tried
Mathias
  • 334
  • 3
  • 5
  • 22
6
votes
2 answers

How can you write an algorithm to properly fill a circle using lines from the center?

Currently I try to write code for calculating the parts of the screen you can see and those who can't because of objects that block light in 2d, like in Among Us: The code should run on a processor with very low specs (at least in 2020), the C64.…
user14699696
6
votes
2 answers

Fill the space of a div

I would like an element to fill the remaining space of a parent div. I have managed to do this, You can see it here "link removed" but the filling div (right) sits underneath the left div. I bascially want the right div to start where the left div…
Mitch
  • 75
  • 7
6
votes
2 answers

Filling area under the curve with matplotlib

I have a pandas series, and this is the graph: I want to fill the area under the curve. The problem is that calling plt.fill(y) outputs: As seen in other answers, this is because we need to send a polygon to the function, so we have to add a…
Alexis
  • 394
  • 4
  • 14
6
votes
0 answers

std::fill with zip_iterator fails to compile on clang and c++11

It appears that zip_iterator, evaluates iterator_category to std::input_iterator_tag for the below code snippet. But the implementation of std::fill in Xcode(i'm using Xcode10.1.0.app) has implementations specific to forward_iterator_tag and…
kk07
  • 73
  • 4
6
votes
1 answer

Legend in Base R: Can fill refrain from drawing boxes on some lines? Can fill draw boxes that cover the whole symbol?

I have a plot with overlapping shaded confidence intervals that looks like this: and I would like very much to annotate the legend with the color of the confidence interval. Something like: except, I'd like two things: for the boxes not to show…
Nathan VanHoudnos
  • 12,923
  • 2
  • 23
  • 29
6
votes
3 answers

WPF: StackPanel with FirstChildFill?

I want a logical and simple way of producing a layout with one control set to fill and the rest to dock. I could use:
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115