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

Resize UIImage's canvas and fill the empty place with color?

In simple words I want to "revert" the crop operation. In crop you choose a rect and cut the image to the specified rect. In my case I need to do the opposite thing - to add empty space around the image and fill it with color. Note - image may have…
Vyachaslav Gerchicov
  • 2,317
  • 3
  • 23
  • 49
6
votes
1 answer

Make canvas fill include stroke in shapes

Ok, so i am making a 3D rendering engine in pure javascript, as a challenge of course - to test my linear algebra skills. I am not using webgl, so please do not say "use webgl". Anyways, the software will take in triangles, a camera and local…
notrota
  • 1,048
  • 10
  • 21
6
votes
1 answer

geom_area fill with different colors

I've got some issue when working on a plot with geom_area. I've got a data frame containing date and counts, like that: dates <- c("02/01/00", "02/04/00", "02/07/00", "02/10/00", "02/01/01", "02/04/01", "02/07/01", "02/10/01") dat <-…
GaryDe
  • 492
  • 1
  • 5
  • 17
6
votes
2 answers

fill property of SVG does not working in Chrome

Trouble is that I can't set value (color) in fill property in Chrome, but in Firefox it works. I tried a lot ways to do it, but there is no result. The only way I see to change color of SVG icon is via jQuery (or JavaScript) by changing id of…
Hombre Honrado
  • 65
  • 1
  • 2
  • 5
6
votes
1 answer

How to fill colors in some specific area in R?

Here is the problem: x<-seq(0,10,length.out = 1000) y1<-dnorm(x,mean = 2,sd=1) y2<-dnorm(x,mean = 6,sd=1) plot(x,y1,type="l") lines(x,y2) abline(v=x[380]) The graph is shown below. How can I fill 2 different colors, say red and blue, on the each…
Charles Yan
  • 83
  • 1
  • 1
  • 9
6
votes
2 answers

CSS - Style svg fill with class name

I have a jsfiddle here - http://jsfiddle.net/morettmt/v7mx737w/2/ I can chnage the fill color by styling the grouping Is there a way to add my own class to the svg and use that in my css .triangle{ fill: red; }
ttmt
  • 5,822
  • 27
  • 106
  • 158
6
votes
1 answer

How to improve the rendering of gradients and filled elements in Gnuplot?

I have noticed that Gnuplot produces ugly artefacts when dealing to filled elements. One instance is in the palette of the next figure: Another example is when using filledcurves between two curves defined from points in ASCII files. In this case,…
Pythonist
  • 1,937
  • 1
  • 14
  • 25
6
votes
0 answers

How can fill button/view background some percentage of size?

I want to make view to fill some percentage like 70% of button size.So, Is it possible in android? I need the view like attached below image.
Jagdish
  • 2,418
  • 4
  • 25
  • 51
6
votes
2 answers

Draw a self intersecting polygon on the HTML Canvas

I'm looking for a way to draw a self intersecting polygon with holes, I'm using the HTML Canvas element. So given 5 points, I want to draw the red one below. This question is essentially the same thing. Note: I don't want to do this using line…
Lerc
  • 306
  • 2
  • 7
6
votes
1 answer

mysql - fill / update field by other fields based on another field condition being true

I want to update all fields in a table based on another field having a condition being true, e.g. Table1 field1 (string) field2 (string) field3 (condition to check) field4 (field to update) In table1, if field3 = "XYZ" then i would like field 4 to…
calstatehomes
  • 63
  • 1
  • 4
6
votes
2 answers

Script to fill browser form

I have little business problem, I need to make a script to fill (not send) out browser forms(only simple textfields, checkboxes and drop downboxes). I need to launch multiple windows with the same form with different data to speed up form…
Arjun
  • 67
  • 1
  • 1
  • 4
6
votes
3 answers

DialogFragment fill screen on phone

I am using a DialogFragment and would like to know if there is a simple way of specifying the dialog to use full screen on normal/small size device(phone). Example of what I want to achieve is confirmation/permission dialog shown on Google Play…
mkso
  • 3,178
  • 4
  • 27
  • 35
6
votes
2 answers

Get all points within a Triangle

I have three points, for example: Start 194 171 Right 216 131 Left 216 203 I want to get all the points within that triangle. How would I do that efficiently?
Abanoub
  • 3,623
  • 16
  • 66
  • 104
6
votes
2 answers

Scaling a fill pattern in raphael.js

paper=Raphael('previewBody',480,480); paper.path({"stroke-width":1},'M0,0 L480,240 L480,480 L240,480 z') .attr('fill','url(bg.png)')) .scale(.5,.5,0,0); My problem is the fill is not scaled with the svg canvas, so proportionally, it ends up as…
barbarianbob
  • 63
  • 1
  • 3
6
votes
4 answers

setProgressDrawable fills the entire seekBar

As I say in the title, when I use setProgressDrawable, it fills the entire SeekBar: if progress is at 34%, progress show 100% but thumb shows the correct percentatge 34%. I don't figure out what can be the problem... …
anonymous
  • 1,320
  • 5
  • 21
  • 37