List of usage examples for com.badlogic.gdx.math Interpolation pow3
Pow pow3
To view the source code for com.badlogic.gdx.math Interpolation pow3.
Click Source Link
From source file:com.jmolina.orb.widgets.ui.Splash.java
License:Open Source License
/** * Constructor// w w w. ja v a 2 s . c om * * @param am AssetManager */ public Splash(AssetManager am) { super(am); splashBody = new Image(getAsset(Asset.UI_SPLASH_BODY, Texture.class)); splashBody.setSize(Utils.cell(8), Utils.cell(8)); splashBody.setOrigin(Utils.cell(4), Utils.cell(4)); splashBody.setPosition(Utils.cell(0), Utils.cell(0)); splashBody.addAction( forever(sequence(Actions.delay(0.75f), Actions.rotateBy(2 * 360, 2, Interpolation.pow3)))); splashReflections = new Image(getAsset(Asset.UI_SPLASH_REFLECTIONS, Texture.class)); splashReflections.setPosition(Utils.cell(0), Utils.cell(0)); setSize(Utils.cell(8), Utils.cell(8)); addActor(splashBody); addActor(splashReflections); }
From source file:mobi.shad.s3lib.gfx.node.filter.FxTextureGalleryMask.java
License:Apache License
/** * *//*from w w w . j a v a2 s . com*/ @Override protected void processLocal() { if (formGui != null) { actionTime = formGui.getFloat("actionTime"); pauseTime = formGui.getFloat("pauseTime"); filesList = formGui.getArrayString("imageList"); filesList = formGui.getArrayString("imageList"); maskTextureName = formGui.getString("imageMask"); interpolationMode = formGui.getInt("interpolationMode"); switch (interpolationMode) { default: interpolation = Interpolation.linear; break; case 1: interpolation = Interpolation.bounce; break; case 2: interpolation = Interpolation.pow2; break; case 3: interpolation = Interpolation.pow3; break; case 4: interpolation = Interpolation.elastic; break; case 5: interpolation = Interpolation.swing; break; case 6: interpolation = Interpolation.sine; break; } data.type = Data.Type.EFFECT_2D; maskTexture = S3ResourceManager.getPixmap(maskTextureName, S3Constans.textureImageSizeHight); if (filesList != null) { if (filesList.length > 1) { srcTexture = S3ResourceManager.getPixmap(filesList[0], S3Constans.textureImageSizeHight); src2Texture = S3ResourceManager.getPixmap(filesList[1], S3Constans.textureImageSizeHight); } else { srcTexture = new Pixmap(S3Constans.textureImageSizeLow, S3Constans.textureImageSizeLow, Format.RGBA8888); srcTexture.setColor(Color.CLEAR); srcTexture.fill(); if (filesList.length > 0) { src2Texture = S3ResourceManager.getPixmap(filesList[0], S3Constans.textureImageSizeHight); } else { src2Texture = new Pixmap(S3Constans.textureImageSizeLow, S3Constans.textureImageSizeLow, Format.RGBA8888); src2Texture.setColor(Color.CLEAR); src2Texture.fill(); } } } else { srcTexture = new Pixmap(S3Constans.textureImageSizeLow, S3Constans.textureImageSizeLow, Format.RGBA8888); srcTexture.setColor(Color.CLEAR); srcTexture.fill(); src2Texture = new Pixmap(srcTexture.getWidth(), srcTexture.getHeight(), srcTexture.getFormat()); src2Texture.setColor(Color.CLEAR); src2Texture.fill(); } if (data.pixmap == null) { data.pixmap = new Pixmap(S3Constans.textureImageSizeHight, S3Constans.textureImageSizeHight, Pixmap.Format.RGBA8888); data.pixmap.setColor(Color.CLEAR); data.pixmap.fill(); data.textureChange = true; } clearPixmap = new Pixmap(S3Constans.textureImageSizeLow, S3Constans.textureImageSizeLow, Format.RGBA8888); clearPixmap.setColor(Color.CLEAR); clearPixmap.fill(); pixmapFilter.setPixmap(data.pixmap, srcTexture, src2Texture, maskTexture); } currentActionTime = 0; currentPauseTime = 0; currentImageIdx = 0; }
From source file:mobi.shad.s3lib.gfx.node.util.FxPixmapToAnimSprite.java
License:Apache License
/** * *//*from ww w . jav a 2 s . c o m*/ @Override protected void processLocal() { if (formGui != null) { speedSizeX = formGui.getFloat("speedSizeX") * S3Screen.aspectRatioX; speedSizeY = formGui.getFloat("speedSizeY") * S3Screen.aspectRatioY; startSizeX = formGui.getFloat("startSizeX") * S3Screen.aspectRatioX; startSizeY = formGui.getFloat("startSizeY") * S3Screen.aspectRatioY; amplitudeSizeX = formGui.getFloat("amplitudeSizeX") * S3Screen.aspectRatioX; amplitudeSizeY = formGui.getFloat("amplitudeSizeY") * S3Screen.aspectRatioY; speedPositionX = formGui.getFloat("speedPositionX") * S3Screen.aspectRatioX; speedPositionY = formGui.getFloat("speedPositionY") * S3Screen.aspectRatioY; amplitudePositionX = formGui.getFloat("amplitudePositionX") * S3Screen.aspectRatioX; amplitudePositionY = formGui.getFloat("amplitudePositionY") * S3Screen.aspectRatioY; transformMode = formGui.getInt("transformMode"); interpolationMode = formGui.getInt("interpolationMode"); switch (interpolationMode) { default: interpolation = Interpolation.linear; break; case 1: interpolation = Interpolation.bounce; break; case 2: interpolation = Interpolation.pow2; break; case 3: interpolation = Interpolation.pow3; break; case 4: interpolation = Interpolation.elastic; break; case 5: interpolation = Interpolation.swing; break; case 6: interpolation = Interpolation.sine; break; case 7: interpolation = Interpolation.bounceIn; break; case 8: interpolation = Interpolation.bounceOut; break; } fileTextureName = formGui.getString("FxTextureLoaderFile"); } if (data.pixmap == null) { return; } data.spriteTexture = S3ResourceManager.getTexture(fileTextureName, 32); updateLocal(0, 0, 0, 0, false); }