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

GoJS: How can I change Node fill color?

I'm using GoJS to make the diagram. My diagram configuration (the example from the official documentation): function init() { //...... // define the Node template myDiagram.nodeTemplate = $(go.Node, "Auto", new…
Alex Vitruk
  • 53
  • 1
  • 4
5
votes
2 answers

CSS Flexbox - varying height of elements on wrap

I have a simple layout with varying size elements that I am trying to put together for a dashboard. div { padding: 5px 5px 5px 5px; margin: 1px 1px 1px 1px; display: flex; } div.first { border: 1px dotted lightpink; } div.second…
korgmatose
  • 265
  • 4
  • 17
5
votes
1 answer

Reset svg fill in css

I want to have all my svgs to have the same plain color. So I use svg *{ fill: #ccc; } But I want to get default fills on :hover. How can I disable the fills and get defaults back?
Kotanet
  • 573
  • 1
  • 8
  • 26
5
votes
1 answer

how to fill images using progressbar in android

I am working on a project and it requires to fill the image. means i want to use the image shape as a progress bar. I don't get any idea of how to use custom progress-bar. here is an image and its an image-button. So this is when progress is 100%: …
Aakash MEHTA
  • 75
  • 1
  • 5
5
votes
3 answers

Python: How do I fill an array with a range of numbers?

So I have an array of 100 elements: a = np.empty(100) How do I fill it with a range of numbers? I want something like this: b = a.fill(np.arange(1, 4, 0.25)) So I want it to keep filling a with that values of that range on and on until it reaches…
hpnk85
  • 395
  • 1
  • 7
  • 12
5
votes
2 answers

Fill svg from left to right

I'm new to svg, I was trying to fill color in a path/circle. I was able to fill it with transition. But I was wondering is there a way to fill the svg from left to right of the path/circle. SVG
Okky
  • 10,338
  • 15
  • 75
  • 122
5
votes
1 answer

Fill a vector xml path with radial color shade

I want to know if there is a chance to fill a path with a radial color shade in an XML-drawable. My XML: vector android:height="64.0dip" android:width="64.0dip" android:viewportWidth="64.0"…
ami87
  • 53
  • 1
  • 7
5
votes
2 answers

Use color names specified in data as fill color in geom_bar

I have a data frame (freqOvertimeHourlyData) like this: HOURS INTERVAL BARCOLOR 1 147 16-17 "green" 2 150 17-18 "green" 3 144 18-19 "blue" 4 149 19-20 "red" 5 139 20-21 "red" 6 101 21-22 "red" Is…
Johann Horvat
  • 1,285
  • 1
  • 14
  • 18
5
votes
3 answers

Filling up a 2D array with random numbers in javascript

I'm really sorry if anything like this has been posted here before but I couldn't find anything, I'm kinda new to the site still! So for a while now I've been learning a bit about game development through html5 and javascript and I stumbled upon…
Gatreh
  • 53
  • 1
  • 1
  • 5
5
votes
1 answer

Fill several sections below a curve of data in Gnuplot

I have a set of points "data" defining a curve that I want to plot with bezier smooth. So I want to fill the area below that curve between some pairs of x values. If I only had one pair of x values it's not that difficult because I define a new set…
texdditor
  • 105
  • 1
  • 1
  • 9
5
votes
1 answer

fill between two lines in polar coordinates

I'm trying to fill in the space between two lines that aren't closed at both ends. I can't get plt.fill_between with plt.polar, any ideas? Here's the code I'm using to draw the lines: import matplotlib.pyplot as plt import numpy as np inner_offset…
5
votes
1 answer

SVG - How to fill a polygon whose sides are formed from bezier curves?

I want to create something like the below using pure SVG but without using a D3 chord or similar functionality. I am able to create a polygon using bezier curves in SVG using standard path elements. But don't know how to fill that polygon with…
Dhwanit
  • 610
  • 1
  • 9
  • 17
5
votes
1 answer

make a single button width to fill parent programmatically

How do I make a single button width to fill parent programmatically? I have done this but it cannot seem to work it is still located on top left with width just wrapping the content... here is some of the code on the button creation... public class…
Chrisantics
  • 165
  • 2
  • 16
5
votes
2 answers

gnuplot: fill area curve keeping tics on top

in gnuplot, when you try to fill an area under a curve, the tics of both axes are hinded behind the solid area. Is there any way to give them to the front? I am using postcript terminal, where no transparent features are allowed (i guess) Thanks
user3207862
  • 61
  • 1
  • 3
5
votes
1 answer

matlab - create a matrix of sequential values

What's the fastest way to create a 8x8 matrix filled with 1-64 by row. The help docs say i should even be able to fill a matrix with an array, but i can't seem to make it work. I've been told it can be done more easily than i do it, but I've not…
Hawkins
  • 53
  • 1
  • 4