Lines Matching refs:positions
45 * @param positions May be null. The relative positions [0..1] of each
49 protected Gradient_Delegate(int colors[], float positions[]) {
53 if (positions != null && colors.length != positions.length) {
57 if (positions == null) {
59 positions = new float[colors.length];
60 positions[0] = 0.f;
61 positions[colors.length-1] = 1.f;
63 positions[i] = spacing * i;
68 mPositions = positions;
84 protected GradientPaint(int[] colors, float[] positions, TileMode tileMode) {
86 mPositions = positions;