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
3
votes
2 answers

How to draw a level line in a filled contour plot and label it?

I have the following contour plot x <- c(0,25,50,75,100) y <- c(0,10,20) z <- matrix(c(12,12,13,12,5,12,5,5,5,12,5,12,13,14,15), nrow = 5, ncol = 3, byrow = TRUE) A <- matrix(seq(0, 100, by = 25), nrow = 3, ncol = 5, byrow = TRUE) #As x B <-…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
3
votes
4 answers

p5 set fill color using hex string and alpha

I'm trying to use hexadecimal values for colors in p5.js and I'm having trouble using it and using an alpha at the same time. I'd like to set the color with one variable and the alpha with another. let myColor = '#FF0000'; let myAlpha =…
Kevin K
  • 2,191
  • 2
  • 28
  • 41
3
votes
1 answer

How to slowly fill background colour of a circle from the center with Animation in Android

I am trying to slowly fill a circle's background starting from the center in Android Below is an example snippet that I found here, I am trying to do the exact same thing like the snippet below but in Android not on a web. I tried to google it but…
the newbie coder
  • 652
  • 2
  • 8
  • 27
3
votes
1 answer

Fill Android Tab with custom pic and/or colour

Hey all I've created Google's exmaple of a tab layout HelloTabWidget.java: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Resources res = getResources(); // Resource object to…
Clozecall
  • 101
  • 1
  • 2
  • 9
3
votes
2 answers

Shading of area between two lines not working correctly in MATLAB

I am trying to plot the shaded uncertainty (upper and lower bounds) along a line. I tried using the fill function but it is including an area larger than I want. I have an upper error (black), lower error (green), and actual data line (red), like…
user3052817
  • 245
  • 3
  • 9
3
votes
1 answer

mapbox layer fill-color based on TEXT property

Is is possible to set the fill-color stops, based on a text property rather than a numeric value e.g fill based on province name My input dataset has a property/Column called PROV_ID and contains a 2 letter ID for each state/Province So I am aiming…
Cor Basson
  • 43
  • 1
  • 5
3
votes
2 answers

Excel fill cell range after applying filter

I want to apply a filter on a set of data, after that I would like to fill a range of data into a range of cells. But now if this will be done, the last two rows are getting the values of the first…
Doe Wayne
  • 77
  • 7
3
votes
2 answers

SVG fill="url(#foo)" disappears when SVGs are loaded dynamically

I am loading different SVGs dynamically within a web application built in AngularJS, I am also altering the opacity of layers within the SVGs. These SVGs have some paths with the fill pattern property as such
jmcgrory
  • 746
  • 7
  • 17
3
votes
1 answer

ggplot Line and Segment Fill

I'm looking to create a plot that looks similar to this one on David Robinson's variance explained blog: I think I have it down except for the fill that goes between the credible intervals and under the posterior curve. If anyone knows how to do…
intern
  • 325
  • 1
  • 2
  • 12
3
votes
2 answers

Javascript - fill() is filling using the wrong colour

I'm drawing on an HTML canvas using Javascript. I'm having an issue where one of my shapes isn't getting filled with the correct colour. It's a complicated situation but I'll do my best to simplify it. The shape that is causing me grief is…
Matt Kelly
  • 1,451
  • 2
  • 13
  • 30
3
votes
2 answers

How to color path elements in SVG?

A couple of days ago I received an SVG from some designers, and I am to implement it with some color alterations and the typical hover effects and such, /edit: but the main thing for now is to just be able to control the background color /edit/.…
Kristoffer Lund
  • 209
  • 3
  • 14
3
votes
1 answer

How to fill an existing pdf form with itext 7 and itextsharp 5.5.9 without flattening it?

I am trying to fill out a USCIS form and after filling it is making as read only (flattening that). I am not sure why it is doing that. Even though I don’t have any code to flatten that. I searched the stack overflow and tried many different things…
3
votes
2 answers

pandas fill N.A. for specific column

I want to fill N.A. values in a specific column if a condition is met in another column to only replace this single class of N.A. values with an imputed / replacement value. E.g. I want to perform: if column1 = 'value1' AND column2 = N.A…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
3
votes
1 answer

fabric.js: How to fill a free hand path to draw the shape?

In fabric.js, we can draw free hand paths (e.g. http://fabricjs.com/freedrawing). However, in a HTML canvas 2d-context ctx, I can also draw a path and then call ctx.fill() to fill the path and make a filled shape out of the path. example code: when…
Peter
  • 143
  • 2
  • 8
3
votes
4 answers

How to plot correct colors in R maps library

I am trying to plot specific colors for specific countries using R maps library. I can fill in the colors but they are not correctly associated with their respective countries. I wonder if someone could have a clue why? My data frame is «filld» and…
JPMD
  • 644
  • 1
  • 7
  • 19