Questions tagged [brush]
406 questions
3
votes
3 answers
Disposing a static brush
I'm writing a biorhythm app.
To test it i have a form with a Button and a PictureBox.
When I click on the button i do
myPictureBox.Image = GetBiorhythm2();
Which runs ok for the first time, but on the second click it causes the following…

Spikolynn
- 4,067
- 2
- 37
- 44
3
votes
0 answers
Zoom & Brush in Stacked Area Chart
Playing with Mike's Zoom & Brush. How to change this when my area is stacked? In this case I use layer function
var layer = svg.selectAll(".layer")
.data(stack(values))
.enter().append("g").append("path")
.attr("class", "layer")
…

tango-foxtrot
- 31
- 2
3
votes
2 answers
C# - convert Object to Brush (WPF)
I'm trying to set my Mainwindow's Background [through MenuItem control], using the MenuItem.Icon. The problem is MenuItem.Icon is an object, whilst Mainwindow.Background is a Brush (or Brush Control) type. Is there a way to convert between these…

Yair V.
- 109
- 1
- 10
3
votes
1 answer
d3 brushing and mouse move coexist
im trying to update http://bl.ocks.org/d3noob/6eb506b129f585ce5c8a and add brushing into it(brushing displayed under the line graph) to make it look like https://www.google.com.hk/#q=s%26p+500
added coded to the first link:
var brush =…

MIN KYU YUN
- 33
- 1
- 6
3
votes
1 answer
Is there a way to make a DynamicResource be dynamic for a Freezable in a ResourceDictionary?
I have this in Brushes.xaml:

Johan Larsson
- 17,112
- 9
- 74
- 88
3
votes
1 answer
d3: Brush with an input field
I'm making a d3 brush similar to the demo shown here. However, I'd like to have the brush contain an element, and when the brush is moved the should move along with it.
Is this possible, perhaps by using a foreignObject?

Robert
- 681
- 1
- 6
- 19
3
votes
1 answer
D3.js chart brush and Crossfilter.js scales out of sync
I am trying to highlight selections in my D3 bar chart using the brush extent.
JSFiddle http://jsfiddle.net/Nyquist212/yys2mqkx/
I'm using crossfilter to reduceCount() my data so I can plot score distribution. But this seems to be screwing with my…

Colin
- 930
- 3
- 19
- 42
3
votes
1 answer
libgdx - blendFunc for brush line drawing? (additive/non-additive mixture)
I am drawing sprites to the framebuffer at each pixel for every step in a line between two points, but I have an issue with the blending:
I am currently using:
(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
Then, in my shader I do:
if( color.a == 0 )
…

JoeOfTex
- 97
- 1
- 10
3
votes
2 answers
HTML5 Canvas Javascript how to make smooth brush
Hello i need make smooth brush likes this:
I try to create it, i make circle and fill it, but result not successful:
Can be seen circles.. this is not smooth like first example
my example code:
function distanceBetween(point1, point2) {
…

Your choice
- 395
- 12
- 25
3
votes
0 answers
How to make custom brushes for fabric.js?
I'm using fabric.js and so far I'm pretty impressed with what it can do. However, even though it comes with some nice brushes, I really need some customized ones for my project.
After searching extensively for days, all I could find was this page:…

Joana F.
- 31
- 1
- 2
3
votes
0 answers
What brush data to save?
I'm working on Blender C++ code for a degree thesis.
When I apply a stroke to an object in the sculpting system, I have to save informations about brushes and their locations.
To do that, I save into a file all datas of Brush type defined in…

Jarvis
- 31
- 4
3
votes
2 answers
Qt Qbrush issue
What is the difference in the following code,
QGraphicsScene * scence = new QGraphicsScene();
QBrush *brush = new QBrush((QColor(60,20,20)));
scence->setBackgroundBrush(*brush);
QGraphicsView *view = new QGraphicsView();
…

Naruto
- 9,476
- 37
- 118
- 201
3
votes
2 answers
Focus/Context Brushing + Pan/Zoom graph - How to limit panning
I've managed to make a d3.js line+area graph sync with focus/context brushing and pan/zoom, with a small example here:
http://jsfiddle.net/MtXvx/8/
I'm having trouble limiting the panning to stop at the original domain boundaries, while also working…

Cindy
- 61
- 1
- 5
3
votes
1 answer
How to set up brush extent in d3 js while using time scale?
I have a problem with brushing using brush.extent([val1, val2])
Regarding documentation: https://github.com/mbostock/d3/wiki/SVG-Controls when I set up brush.extent([val1, val2]) like this:
var xScale = d3.scale.linear()
.domain(data)
…

sanneo
- 365
- 4
- 15
3
votes
2 answers
How do you get selected datums in brush "brush" event handler?
I am attempting to create a vertical timeline using d3.js that is linked to a map so that any item(s) contained in the brush will also be displayed in the map. Kind of like http://code.google.com/p/timemap/ but with d3 instead of SIMILE and a…

Nathan Reese
- 2,655
- 6
- 31
- 34