Questions tagged [brush]
406 questions
4
votes
1 answer
how to set d3.brush extent right?
I am writing a d3 widget based on Mike Bostocks example http://bl.ocks.org/mbostock/1667367
So I am trying to set brush extent with predefined dates, but the extent rectangle is not applied to those dates.
var brush = d3.svg.brush()
…

Taras Shchybovyk
- 416
- 4
- 17
4
votes
1 answer
D3 brushing on grouped bar chart
I am trying to get brushing to work similar to this example, but with a grouped bar chart: http://bl.ocks.org/mbostock/1667367
I don't really have a good understanding of how brushing works (I haven't been able to find any good tutorials), so I'm a…

JamesE
- 3,833
- 9
- 44
- 82
4
votes
1 answer
D3 2 dimensional brush not slideable
I have made a scatterplot graph with a 2-dimensional brush in a smaller graph underneath. This enables the user to dynamically look at sub-areas of the full graph. However, when I draw an area brush, it is no longer "moveable," in that the brush…

trandnash
- 55
- 6
4
votes
1 answer
Combining stacked area chart and brushing in D3
I'm struggling to take a stacked area chart in D3 and add brushing features. I've managed to generate both the large (focus) and small (context) axes, and the plot looks fine to start. My problems is that the brushing features don't work at all.…

moustachio
- 2,924
- 3
- 36
- 68
4
votes
0 answers
D3 Change Alpha within a Brush
I'm wondering if it's possible to show the area inside a brush as a different color or different opacity level as the area outside the brush. I'm using the focus+context example as a starting point (http://bl.ocks.org/mbostock/1667367). I'm…

andyopayne
- 1,348
- 3
- 24
- 49
4
votes
1 answer
How to get a tapering line brush effect in Objective C using GraphicContext
I am doing a calligraphy application and would like to modify my code below so when a user ends a brush stroke, the line tapers and thins out like it would with a real calligraphy pen (a flick effect). I understand that touchesEnded may be a better…

AppleFanBoy
- 101
- 1
- 1
- 8
4
votes
4 answers
C# Brush to string
I search a way to save the color of a brush as a string.
For example I have a Brush which has the color red.
Now I want to write "red" in a textbox.
Thanks for any help.

Waronius
- 363
- 2
- 4
- 10
3
votes
3 answers
Creating a WPF ValueConverter for a Brush
On the Nerd Plus Art blog today, there was a post about creating WPF Resources for arrows, which the author uses frequently. I have a side project that has Back and Forward buttons, so I thought that the Left and Right arrows would work great on…

Andy
- 30,088
- 6
- 78
- 89
3
votes
1 answer
Merge an ImageBrush and a SolidColorBrush ? (as a Background of a Canvas)
I have an ImageBrush and a SolidColorBrush.
The thing is that I, now, want to set my canvas background with these properties.
I can easily set my background to either my ImageBrush or my SolidColorBrush but can I do a sort of merge ?
The thing is…

Guillaume Slashy
- 3,554
- 8
- 43
- 68
3
votes
0 answers
wpf polyline multi brushes
Is it possible to set multi brushes for wpf polyline? For example I would like to draw triangle using polyline and set different color for each edge, or maybe there is other way to achieve it?

user1094613
- 71
- 1
- 4
3
votes
0 answers
Recharts: using custom x-axis ticks with a
I've been trying to create a chart with recharts in react and I keep on getting the same issue with custom x-axis ticks rendering when using the component.
I have a chunk of data to display for 1 day: [{ date: '9:30', value: 1 }, { date:…

Anton Pochernikov
- 31
- 1
3
votes
1 answer
How can I create a feathered brush with JavaFX?
So I'm trying to create a very basic photo editor program in Java, using JavaFX. I got a brush and eraser working pretty well so far the following way:
package application;
import java.io.File;
import javax.imageio.ImageIO;
import…

Dániel Sáfár
- 31
- 2
3
votes
2 answers
Blurred edges keep regaining 100% opacity (Processing)
I am trying to create a round brush with blurred edges in Processing through the following code. The circle shape is drawn pixel by pixel because in the actual version, I try to draw with pixels taken from the PGraphic pg.
PFont font;
PGraphics…

kaktus
- 169
- 1
- 1
- 11
3
votes
3 answers
How to get brushes color?
There are buttons in FormDesign. If first button is clicked,
brush = Brushes.Red;
there are codes like this for each button. I want to get brushes color for that moment. How can I get it like;
Color c = (color of brush);
this way ?
Edit…

PreS
- 43
- 1
- 5
3
votes
1 answer
Windows graphics orders implementation in java
Anybody knows how implemented PatBlt in JAVA. Or have some additional info about Brush.

Denys Cherepanin
- 51
- 5