# GLRippleView **Repository Path**: qianjujun_admin/GLRippleView ## Basic Information - **Project Name**: GLRippleView - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-30 - **Last Updated**: 2024-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GLRippleView [![Download](https://api.bintray.com/packages/r21nomi/maven/glrippleview/images/download.svg) ](https://bintray.com/r21nomi/maven/glrippleview/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-GLRippleView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5935) Custom GLSurfaceView for Android to show ripple effect with OpenGL. Simple | Cross-fade ---- | ---- ![](art/ripple.gif) | ![](art/fade.gif) Ripple algorithm of this library is based on [Adrian Boeing's article](http://adrianboeing.blogspot.jp/2011/02/ripple-effect-in-webgl.html). ## Getting Started ```groovy dependencies { compile 'com.github.r21nomi:glrippleview:1.0.0' } ``` ## Usage ### Simple ```xml ``` ```kotlin glRippleView.setRippleOffset(0.01f) ``` ### Cross-fade ```kotlin glRippleView.run { addBackgroundImages(listOf( BitmapFactory.decodeResource(resources, R.drawable.bg2), BitmapFactory.decodeResource(resources, R.drawable.bg3) )) setRippleOffset(0.01f) setFadeInterval(5000) startCrossFadeAnimation() } ``` ## License ``` Copyright 2017 Ryota Takemoto (r21nomi) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```