fill

Changing fill color of MovieClip Actionscript 3

别说谁变了你拦得住时间么 提交于 2019-11-28 10:14:12
i want to ask, how to change only fill color of an instance on the stage - i can do it by using ColorTransform object, but it changes color of the whole instance, not just the fill. I want to change only the fill color, not the stroke color. can anybody help me? this is my code: function paint(){ var myColorTransform:ColorTransform = new ColorTransform(); myColorTransform.color = someColorNumber; coloredObject.transform.colorTransform = myColorTransform; } This cant be done once you've drawn a shape as action script has no way of determining what is a stroke and what is a fill. You have a

Highlight parts of matlab plot

十年热恋 提交于 2019-11-28 10:11:21
I have a matlab plot that looks like this: Where the Y values for each of the subplots are stored in single dimensional arrays. What i would like to do is to find an area where the top graph is above a certain height say 0.5. I would also like to highlight the same area in the other graphs as well. Here is an example of what I am talking about: The best i have been able to find so far is the function area which will fill an area on the matlab grid. However, if someone could tell me how to make it transparent and also how to fill multiple areas without having to do lots of area commands that

How to change a path fill (on a button) with triggers in XAML

一笑奈何 提交于 2019-11-28 09:58:30
I have a button with a path as icon,i want to change the fill of the path when the mouse is over the whole button (not only the path). Thanks. <Button Name="Test_Button" Width="220" Height="80" Padding="2"> <Canvas Width="76" Height="76" Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0"> <Path Canvas.Left="19" Canvas.Top="19" Width="38" Height="38" Data="F1 M 35,19L 41,19L 41,35L 57,35L 57,41L 41,41L 41,57L 35,57L 35,41L 19,41L 19,35L 35,35L 35,19 Z " Stretch="Fill"> <Path.Style> <Style TargetType="{x:Type Path}"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Path.Fill

OpenCV closing a shape and filling it

女生的网名这么多〃 提交于 2019-11-28 09:13:48
I want to output a blue-filled hand but get the incorrect output. I've included the input picture, incorrect output picture and code below. i think the code below does not fill the whole image because the image isn't closed yet at the right boundary. how do i close the shape and fill it with blue properly? #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace cv; using namespace std; void drawStuff(); void showInputWindow(); void showCannyWindow(); void

Drawing a filled rectangle with a border in android

↘锁芯ラ 提交于 2019-11-28 07:09:29
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 way around this? You draw a rectangle with the color of the border and the size of the rectangle plus the border, you change the color of the paint and draw again the rectangle with the normal size. Try paint. setStyle (Paint.Style. FILL ) and paint. setStyle (Paint.Style. STROKE ). Paint paint = new Paint(); Rect r = new Rect(10, 10, 200, 100);

2d Array in Spiral Order

牧云@^-^@ 提交于 2019-11-28 05:59:08
问题 I'm trying to fill an array in spiral order. So far, I can print the array in spiral order, but is there a way to modify the array so that i can fill it in spiral order and then just print the array? I'd like it to go in decreasing order like a countdown. Please help! public class Spiral { public static void main(int m, int n) { // create m by n array of integers 1 through m*n int[][] values = new int[m][n]; for (int i = 0; i < m; i++) for (int j = 0; j < n; j++) values[i][j] = 1 + (m*n)*i +

How to change color palette of mosaic plot

放肆的年华 提交于 2019-11-28 04:48:41
问题 I have following data and code: > mat <- matrix(c(120,230,84,70,130,83,13,26,18),3) > dimnames(mat) <- list(c("good","fair","poor"),c("a","b","c")) > mat > mat a b c good 120 70 13 fair 230 130 26 poor 84 83 18 > > chisq.test(mat) Pearson's Chi-squared test data: mat X-squared = 11.411, df = 4, p-value = 0.02231 > library(vcd) > mosaic(mat, shade=T) The chi-squared test shows significant difference but no color is seen since residuals are small. With higher residuals, colors are seen: ?mosaic

Hatch patterns in gnuplot

两盒软妹~` 提交于 2019-11-28 02:15:38
问题 I am wondering if gnuplot offers more hatched patterns than those 8 patterns which you see when typing "test" (e.g. in wxt terminal) Maybe there are more than 8 fill patterns? ...apparently not, as the code below shows... I'm not talking about patterns combined with different colors, I just mean the type of patterns. I was hoping that you can realize, for example horizontally or vertically hatched patterns. Maybe even set the distance between the hatch lines or even set the angle. Maybe you

MATLAB fill area between lines

非 Y 不嫁゛ 提交于 2019-11-28 01:58:29
问题 I'm trying to do something similar to what's outlined in this post: MATLAB, Filling in the area between two sets of data, lines in one figure but running into a roadblock. I'm trying to shade the area of a graph that represents the mean +/- standard deviation. The variable definitions are a bit complicated but it boils down to this code, and when plotted without shading, I get the screenshot below: x = linspace(0, 100, 101)'; mean = torqueRnormMean(:,1); meanPlusSTD = torqueRnormMean(:,1) +

Filling polygons of a map using GGplot in R

心不动则不痛 提交于 2019-11-28 00:22:42
For my school assignment I am trying to make a map of the Netherlands filled with a colour scale that is dependent of integer numbers (amount of citizens). I have a dataset called mun_neth which is a SpatialPolygonDataFrame and contains all polygons of the Netherlands and all the data that I want to plot. I have tried three different methods which I have added underneath. I also put the error messages underneath. I think I misunderstand the fill requirement. Where is it going wrong and how should I fix it? After searching here on stackoverflow I feel that I have become pretty close to plotting