-
HTML5 Canvas的多款星空背景动画特效.zip下载
资源介绍
$( document ).ready( function() {
//------------------------------------------------------------------------
//Settings - params for WarpDrive
var settings = {
width: 480,
height: 480,
autoResize: false,
autoResi*Width: null,
autoResizeMaxWidth: null,
autoResi*Height: null,
autoResizeMaxHeight: null,
addMouseControls: true,
addTouchControls: true,
hideContextMenu: true,
starCount: 6666,
starBgCount: 2222,
starBgColor: { r:255, g:255, b:255 },
starBgColorRangeMin: 10,
starBgColorRangeMax: 40,
starColor: { r:255, g:255, b:255 },
starColorRangeMin: 10,
starColorRangeMax: 100,
starfieldBackgroundColor: { r:0, g:0, b:0 },
starDirection: 1,
starSpeed: 20,
starSpeedMax: 200,
starSpeedAnimationDuration: 2,
starFov: 300,
starFovMin: 200,
starFovAnimationDuration: 2,
starRotationPermission: true,
starRotationDirection: 1,
starRotationSpeed: 0.0,
starRotationSpeedMax: 1.0,
starRotationAnimationDuration: 2,
starWarpLineLength: 2.0,
starWarpTunnelDiameter: 100,
starFollowMouseSensitivity: 0.025,
starFollowMouseXAxis: true,
starFollowMouseYAxis: true
};
多款漂亮炫目的通过配置参数进行灵活的配置,可用鼠标进行互动的HTML5 Canvas星空背景动画特效。