Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
yhongm committed May 12, 2017
1 parent 9464bc2 commit 19fe6c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ protected void onDraw(Canvas canvas) {
}

/**
* 画水滴飞溅的效果
* 画两侧水滴飞溅的效果,并且随机生成水滴
*
* @param canvas
* @param x
Expand Down Expand Up @@ -321,9 +321,6 @@ private void drawRandomDrag(Canvas canvas, int x, int y, HashMap<Integer, Float>
private void pushRandomDrag(int y) {
Random r = new Random();
for (int i = 0; i < 20; i++) {
// if (y < 50) {
// y = 50;
// }
int randomY = r.nextInt(y);
if (mLeftHashMapPath.containsKey(randomY)) {
Float rightValue = mRightHashMapPath.get(randomY);
Expand All @@ -342,7 +339,7 @@ private void pushRandomDrag(int y) {
}

/**
* 画水滴的移动
* 画水滴溅起的溅起
*
* @param canvas
* @param x
Expand Down

0 comments on commit 19fe6c6

Please sign in to comment.