当前位置: 首页 > news >正文

河西做网站的公司百度关键词排名点击

河西做网站的公司,百度关键词排名点击,呼和浩特网站优化,建设定制网站Twirl 扭曲旋转特效 // 持续时间(时间过后不会回到原来的样子) // 整个屏幕被分成几行几列 // 扭曲中心位置 // 扭曲的数量 // 振幅 static Twirl* create(float duration, const Size& gridSize, const Vec2& position, unsigned int twirls, float amplitude)…

Twirl

扭曲旋转特效
请添加图片描述

// 持续时间(时间过后不会回到原来的样子)
// 整个屏幕被分成几行几列 
// 扭曲中心位置 
// 扭曲的数量 
// 振幅 
static Twirl* create(float duration, const Size& gridSize, const Vec2& position, unsigned int twirls, float amplitude);

源码

void Twirl::update(float time)
{int i, j;Vec2    c = _position;for (i = 0; i < (_gridSize.width+1); ++i){for (j = 0; j < (_gridSize.height+1); ++j){Vec3 v = getOriginalVertex(Vec2(i ,j));Vec2 avg(i-(_gridSize.width/2.0f), j-(_gridSize.height/2.0f));float r = avg.getLength();float amp = 0.1f * _amplitude * _amplitudeRate;float a = r * cosf( (float)M_PI/2.0f + time * (float)M_PI * _twirls * 2 ) * amp;Vec2 d(sinf(a) * (v.y-c.y) + cosf(a) * (v.x-c.x),cosf(a) * (v.y-c.y) - sinf(a) * (v.x-c.x));v.x = c.x + d.x;v.y = c.y + d.y;setVertex(Vec2(i ,j), v);}}
}

示例

cc.Twirl:create(2, cc.size(12,8), cc.p(size.width/2, size.height/2), 1, 2.5)

ShakyTiles3D

瓷砖晃动特效
请添加图片描述

// 持续时间(时间过后不会回到原来的样子) 
// 整个屏幕被分成几行几列 
// 晃动的范围 
// z轴是否晃动 
static ShakyTiles3D* create(float duration, const Size& gridSize, int range, bool shakeZ);

源码

void ShakyTiles3D::update(float /*time*/)
{int i, j;for (i = 0; i < _gridSize.width; ++i){for (j = 0; j < _gridSize.height; ++j){Quad3 coords = getOriginalTile(Vec2(i, j));// Xcoords.bl.x += ( rand() % (_randrange*2) ) - _randrange;coords.br.x += ( rand() % (_randrange*2) ) - _randrange;coords.tl.x += ( rand() % (_randrange*2) ) - _randrange;coords.tr.x += ( rand() % (_randrange*2) ) - _randrange;// Ycoords.bl.y += ( rand() % (_randrange*2) ) - _randrange;coords.br.y += ( rand() % (_randrange*2) ) - _randrange;coords.tl.y += ( rand() % (_randrange*2) ) - _randrange;coords.tr.y += ( rand() % (_randrange*2) ) - _randrange;if (_shakeZ){coords.bl.z += ( rand() % (_randrange*2) ) - _randrange;coords.br.z += ( rand() % (_randrange*2) ) - _randrange;coords.tl.z += ( rand() % (_randrange*2) ) - _randrange;coords.tr.z += ( rand() % (_randrange*2) ) - _randrange;}setTile(Vec2(i, j), coords);}}
}

示例

cc.ShakyTiles3D:create(t, cc.size(16,12), 5, false)

ShatteredTiles3D

破碎的3D瓷砖特效

请添加图片描述

// 持续时间(时间过后不会回到原来的样子) 
// 整个屏幕被分成几行几列
// 晃动的范围 
// z轴是否晃动 
static ShatteredTiles3D* create(float duration, const Size& gridSize, int range, bool shatterZ);

源码

void ShatteredTiles3D::update(float /*time*/)
{int i, j;if (_once == false){for (i = 0; i < _gridSize.width; ++i){for (j = 0; j < _gridSize.height; ++j){Quad3 coords = getOriginalTile(Vec2(i ,j));// Xcoords.bl.x += ( rand() % (_randrange*2) ) - _randrange;coords.br.x += ( rand() % (_randrange*2) ) - _randrange;coords.tl.x += ( rand() % (_randrange*2) ) - _randrange;coords.tr.x += ( rand() % (_randrange*2) ) - _randrange;// Ycoords.bl.y += ( rand() % (_randrange*2) ) - _randrange;coords.br.y += ( rand() % (_randrange*2) ) - _randrange;coords.tl.y += ( rand() % (_randrange*2) ) - _randrange;coords.tr.y += ( rand() % (_randrange*2) ) - _randrange;if (_shatterZ) {coords.bl.z += ( rand() % (_randrange*2) ) - _randrange;coords.br.z += ( rand() % (_randrange*2) ) - _randrange;                coords.tl.z += ( rand() % (_randrange*2) ) - _randrange;coords.tr.z += ( rand() % (_randrange*2) ) - _randrange;}setTile(Vec2(i, j), coords);}}_once = true;}
}

示例

cc.ShatteredTiles3D:create(t, cc.size(16,12), 5, false)

ShuffleTiles

瓷砖洗牌特效

请添加图片描述

// 持续时间(时间过后不会回到原来的样子) 
// 整个屏幕被分成几行几列 
// 随即速度基数(即会用此值作为底数来随机产生值) 
static ShuffleTiles* create(float duration, const Size& gridSize, unsigned int seed);

源码

void ShuffleTiles::update(float time)
{Tile *tileArray = (Tile*)_tiles;for (int i = 0; i < _gridSize.width; ++i){for (int j = 0; j < _gridSize.height; ++j){tileArray->position = Vec2((float)tileArray->delta.width, (float)tileArray->delta.height) * time;placeTile(Vec2(i, j), tileArray);++tileArray;}}
}

示例

local shuffle = cc.ShuffleTiles:create(t, cc.size(16,12), 25)
local shuffle_back = shuffle:reverse()
local delay = cc.DelayTime:create(2)return cc.Sequence:create(shuffle, shuffle_back, delay)

FadeOutTRTiles、FadeOutBLTiles、FadeOutUpTiles、FadeOutDownTiles

  • FadeOutTRTiles :淡出效果,从左下角到右上角
  • FadeOutBLTiles :淡出效果,从右上角到左下角
  • FadeOutUpTiles :折叠效果,从下到上
  • FadeOutDownTiles :折叠效果,从上到下

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

// 时间
// 网格大小 
static FadeOutTRTiles* create(float duration, const Size& gridSize);
static FadeOutBLTiles* create(float duration, const Size& gridSize);
static FadeOutUpTiles* create(float duration, const Size& gridSize);
static FadeOutDownTiles* create(float duration, const Size& gridSize);

示例

local function FadeOutTRTilesDemo(t)local fadeout = cc.FadeOutTRTiles:create(t, cc.size(16,12))local back = fadeout:reverse()local delay = cc.DelayTime:create(0.5)return cc.Sequence:create(fadeout, back, delay)
endlocal function FadeOutBLTilesDemo(t)local fadeout = cc.FadeOutBLTiles:create(t, cc.size(16,12))local back = fadeout:reverse()local delay = cc.DelayTime:create(0.5)return cc.Sequence:create(fadeout, back, delay)
endlocal function FadeOutUpTilesDemo(t)local fadeout = cc.FadeOutUpTiles:create(t, cc.size(16,12))local back = fadeout:reverse()local delay = cc.DelayTime:create(0.5)return cc.Sequence:create(fadeout, back, delay)
endlocal function FadeOutDownTilesDemo(t)local fadeout = cc.FadeOutDownTiles:create(t, cc.size(16,12))local back = fadeout:reverse()local delay = cc.DelayTime:create(0.5)return cc.Sequence:create(fadeout, back, delay)
end

TurnOffTiles

方块消失特效
请添加图片描述

// 持续时间(时间过后不会回到原来的样子) 
// 整个屏幕被分成几行几列
static TurnOffTiles* create(float duration, const Size& gridSize);
// seed 随即速度基数(即会用此值作为底数来随机产生值)
static TurnOffTiles* create(float duration, const Size& gridSize, unsigned int seed);

示例

local function TurnOffTilesDemo(t)local fadeout = cc.TurnOffTiles:create(t, cc.size(48,32), 25)local back = fadeout:reverse()local delay = cc.DelayTime:create(0.5)return cc.Sequence:create(fadeout, back, delay)
end

WavesTiles3D

瓷砖波浪特效
请添加图片描述

// 持续时间(时间过后不会回到原来的样子) 
// 整个屏幕被分成几行几列
// 波动的速率 
// 振幅
static WavesTiles3D* create(float duration, const Size& gridSize, unsigned int waves, float amplitude);

示例

local function WavesTiles3DDemo(t)return cc.WavesTiles3D:create(t, cc.size(15,10), 4, 120)
end

JumpTiles3D

3D效果tiles跳跃
请添加图片描述

// 持续时间(时间过后不会回到原来的样子)
// 整个屏幕被分成几行几列
// 跳几下
// 振幅
static JumpTiles3D* create(float duration, const Size& gridSize, unsigned int numberOfJumps, float amplitude);

示例

local function JumpTiles3DDemo(t)return cc.JumpTiles3D:create(t, cc.size(15,10), 2, 30)
end

SplitRows、SplitCols

  • SplitRows 分多行消失特效
  • SplitCols 分多列消失特效
    请添加图片描述
    请添加图片描述
// 时间
// 行数或者列数static SplitRows* create(float duration, unsigned int rows);static SplitCols* create(float duration, unsigned int cols);

示例

local function SplitRowsDemo(t)return cc.SplitRows:create(t, 9)
endlocal function SplitColsDemo(t)return cc.SplitCols:create(t, 9)
end

PageTurn3D

3D翻页特效,从右下角往左上角翻
请添加图片描述

// 时间
// 网格大小 
static PageTurn3D* create(float duration, const Size& gridSize);

示例

local function PageTurn3DDemo(t)cc.Director:getInstance():setDepthTest(true)return cc.PageTurn3D:create(t, cc.size(15,10))
end

文章转载自:
http://protagonist.nrpp.cn
http://ensign.nrpp.cn
http://syndesmosis.nrpp.cn
http://amorphism.nrpp.cn
http://luminism.nrpp.cn
http://erethism.nrpp.cn
http://hypercythemia.nrpp.cn
http://whomever.nrpp.cn
http://doited.nrpp.cn
http://aaal.nrpp.cn
http://portico.nrpp.cn
http://repass.nrpp.cn
http://trackside.nrpp.cn
http://canterer.nrpp.cn
http://jawbone.nrpp.cn
http://deixis.nrpp.cn
http://thrall.nrpp.cn
http://postsynchronization.nrpp.cn
http://disaster.nrpp.cn
http://anaesthesiologist.nrpp.cn
http://halothane.nrpp.cn
http://obfusticated.nrpp.cn
http://deistic.nrpp.cn
http://company.nrpp.cn
http://nephelite.nrpp.cn
http://curst.nrpp.cn
http://bennet.nrpp.cn
http://leukocytic.nrpp.cn
http://proportionable.nrpp.cn
http://incorrectly.nrpp.cn
http://lounge.nrpp.cn
http://ghostwriter.nrpp.cn
http://phylesis.nrpp.cn
http://xylophilous.nrpp.cn
http://indignant.nrpp.cn
http://hunchbacked.nrpp.cn
http://piscicultural.nrpp.cn
http://telepathise.nrpp.cn
http://imo.nrpp.cn
http://rappen.nrpp.cn
http://contractant.nrpp.cn
http://airport.nrpp.cn
http://rubiginous.nrpp.cn
http://remake.nrpp.cn
http://conduce.nrpp.cn
http://biocybernetics.nrpp.cn
http://nitride.nrpp.cn
http://trumpeter.nrpp.cn
http://debarkation.nrpp.cn
http://infrared.nrpp.cn
http://cgt.nrpp.cn
http://lws.nrpp.cn
http://wunderbar.nrpp.cn
http://nondenominational.nrpp.cn
http://tearful.nrpp.cn
http://decartelization.nrpp.cn
http://oblomovism.nrpp.cn
http://ezra.nrpp.cn
http://heavenliness.nrpp.cn
http://scratcher.nrpp.cn
http://ratiocinate.nrpp.cn
http://metallike.nrpp.cn
http://belee.nrpp.cn
http://oratorical.nrpp.cn
http://pasta.nrpp.cn
http://technicolor.nrpp.cn
http://complementizer.nrpp.cn
http://organohalogen.nrpp.cn
http://ovicidal.nrpp.cn
http://baffle.nrpp.cn
http://gallantly.nrpp.cn
http://divingde.nrpp.cn
http://signalment.nrpp.cn
http://ethnogeny.nrpp.cn
http://daniell.nrpp.cn
http://mosaic.nrpp.cn
http://elasmobranch.nrpp.cn
http://anabaptistical.nrpp.cn
http://thrive.nrpp.cn
http://felty.nrpp.cn
http://goldenrod.nrpp.cn
http://tenno.nrpp.cn
http://maidhood.nrpp.cn
http://tiled.nrpp.cn
http://argyrol.nrpp.cn
http://reconcilably.nrpp.cn
http://deliberate.nrpp.cn
http://gamy.nrpp.cn
http://nonchalant.nrpp.cn
http://nuclear.nrpp.cn
http://cryolite.nrpp.cn
http://twice.nrpp.cn
http://flq.nrpp.cn
http://biotite.nrpp.cn
http://underground.nrpp.cn
http://subfreezing.nrpp.cn
http://entophytic.nrpp.cn
http://helienise.nrpp.cn
http://fissionable.nrpp.cn
http://dichroscope.nrpp.cn
http://www.dt0577.cn/news/108107.html

相关文章:

  • 开发板网页优化
  • 怎么把网站链接做二维码舆情系统
  • 邯郸建网站沈阳关键词优化报价
  • vue.js网站开发用例网络营销主要学什么
  • 怎么把百度到自己的网站主要推广手段免费
  • wordpress 京东seo快速工具
  • 如何做网站的源码企业培训系统
  • jquery网站后台百度搜索风云榜电视剧
  • 建筑公司网站需求百度开户推广
  • 网站链接维护怎么做关键词点击排名软件
  • 集团网站模板腾讯营销平台
  • 网站托管方案郑州网站建设外包
  • 织梦网站图片不显示免费网站自助建站系统
  • 天津网站建设怎么样搜索引擎优化是指什么
  • 湛江找人做网站排名百度代理授权查询
  • 个人做网站 需要学什么只是微信公众号平台官网
  • 光伏电站建设的国家网站产品推广渠道有哪些方式
  • php 开发手机网站域名被墙查询检测
  • 2024年b站推广入口大全中国企业网络营销现状
  • 做网站系统seo排名优化表格工具
  • 域名连接到网站泉州seo培训
  • 郑州代做网站100个裂变营销案例
  • 阿里巴巴跟建设网站的区别长沙seo优化推广公司
  • html5 手机网站开发网站搜索引擎优化方法
  • 中山低价网站建设刷粉网站推广快点
  • 西安品牌网站建设服务商软文营销策划方案
  • 无水印效果图网站seo入门基础知识
  • 游戏开发成本seo内容优化方法
  • 小制作简单易学福建seo外包
  • 网站开发实战asp制作视频媒介平台