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
505
votes
7 answers

SVG fill color transparency / alpha?

Is it possible to set a transparency or alpha level on SVG fill colours? I've tried adding two values to the fill tag (changing it from fill="#044B94" to fill="#044B9466"), but this doesn't work.
Ollie Glass
  • 19,455
  • 21
  • 76
  • 107
89
votes
8 answers

How to fill 100% of remaining height?

+--------------------+ | | | | | | | | | 1 | | | | | | | | …
Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231
72
votes
1 answer

How to draw unfilled figures on Android?

Is it possible to draw unfilled figures on Android? By default circles and rectangles are filled.
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
62
votes
3 answers

Drawing a filled rectangle with a border in android

Is there any way in Android to draw a filled rectangle with say a black border. My problem is that the canvas.draw() takes one paint object, and to my knowledge the paint object can't have a different color for the fill and the stroke. Is there a…
Uwais Iqbal
  • 910
  • 1
  • 8
  • 14
51
votes
4 answers

how to change svg fill color when used as base-64 background image data?

I'm using SVG for a project, loaded in css like this: background-image:…
Luca Reghellin
  • 7,426
  • 12
  • 73
  • 118
45
votes
2 answers

How to fill a Path in Android with a linear gradient?

Given a closed Path object result is like this: Although that is a rectangle I'm looking for something which works with any closed Path.
Carl Whalley
  • 3,011
  • 8
  • 33
  • 48
44
votes
8 answers

2 divs aligned side by side, how to make right div fill width 100%?

I'm wondering what the best way to go about doing this is... I have 3 divs: a div#container with width=100%; that holds 2 inner divs a div#inner_left with width changing dynamically, but no wider than 200px (will hold a product image) an…
thedeepfield
  • 6,138
  • 25
  • 72
  • 107
43
votes
2 answers

Label minimum and maximum of scale fill gradient legend with text: ggplot2

I have a plot created in ggplot2 that uses scale_fill_gradientn. I'd like to add text at the minimum and maximum of the scale legend. For example, at the legend minimum display "Minimum" and at the legend maximum display "Maximum". There are posts…
nofunsally
  • 2,051
  • 6
  • 35
  • 53
42
votes
4 answers

MATLAB, Filling in the area between two sets of data, lines in one figure

I have a question about using the area function; or perhaps another function is in order... I created this plot from a large text file: The green and the blue represent two different files. What I want to do is fill in the area between the red line…
Josh
  • 421
  • 1
  • 4
  • 4
36
votes
2 answers

Difference between "-webkit-text-fill-color" and "color"?

I'm trying to understand the difference between -webkit-text-fill-color and just simply color? Is there any functional difference? So far as I can tell, they're exactly the same.. Is there something you could do with one but not the other?
android.nick
  • 11,069
  • 23
  • 77
  • 112
36
votes
2 answers

zerofill a integer php

How would I go about 'zero filling' an integer? ie 1 becomes 0001 40 becomes 0040 174 becomes 0174
dotty
  • 40,405
  • 66
  • 150
  • 195
33
votes
4 answers

How to make a pattern "fixed" in Raphael.js / IE?

I'm creating a small tool to illustrate the benefits of polarizing lenses. Basically a user will drag the lenses (a Raphael.js path) over a dazzling scene (the CSS background of the container DIV) and "see through" the lenses. Here is the js…
Paolo Stefan
  • 10,112
  • 5
  • 45
  • 64
31
votes
10 answers

How do I get Emacs to fill sentences, but not paragraphs?

I've seen at least two recommendations on StackOverflow to insert newlines between sentences when editing LaTeX documents. The reason being that the practice facilitates source control, diffing, and collaborative editing. I'm basically convinced,…
dmckee --- ex-moderator kitten
  • 98,632
  • 24
  • 142
  • 234
31
votes
1 answer

Can't Set Fill Color Apache POI Excel Workbook

I have scanned this forum over and over and tried every method mentioned on here and still can't get Apache POI to change to fill background color of my excel document. Here is my code: errorOccured = true; XSSFCellStyle cs =…
Richie Episcopo
  • 383
  • 1
  • 3
  • 15
26
votes
3 answers

different fillStyle colors for arc in canvas

I imagine the solution to this is very simple, and apologize in advance if this is painfully obvious, but I can't seem to figure out how to set two different fillStyles for two different arcs ...I just wanna be able to draw different color circles.…
Nick Briz
  • 1,917
  • 3
  • 20
  • 34
1
2 3
99 100