CAEmitterLayer
emitterCells: 裝著CAEmitterCell對象的數組,被用于把粒子投放到layer上;
emitterDepth:決定粒子形狀的深度聯系:emitter shape
emitterZposition:發射源的z坐標位置;
emitterPosition: // 粒子發射位置
emitterSize: // 發射源的尺寸大小
emitterMode:發射模式
emitterShape:發射源形狀
CAEmitterCell
birthRate:粒子產生系數,默認1.0;
lifetime:粒子生命周期
preservesDepth:不是多很清楚(粒子是平展在層上)
scale:粒子的縮放比例:
seed:用于初始化隨機數產生的種子
spin:自旋轉速度
velocity:粒子速度
CAEmitterCell類代從CAEmitterLayer射出的粒子;
emitter cell定義了粒子發射的方向。
alphaRange: 一個粒子的顏色alpha能改變的范圍;
alphaSpeed:粒子透明度在生命周期內的改變速度;
birthrate:粒子參數的速度乘數因子;每秒發射的粒子數量
blueRange:一個粒子的顏色blue 能改變的范圍;
blueSpeed: 粒子blue在生命周期內的改變速度;
color:粒子的顏色
contents:是個CGImageRef的對象,既粒子要展現的圖片;
contentsRect:應該畫在contents里的子rectangle:
emissionLatitude:發射的z軸方向的角度
emissionLongitude:x-y平面的發射方向
emissionRange;周圍發射角度
emitterCells:粒子發射的粒子
enabled:粒子是否被渲染
greenrange: 一個粒子的顏色green 能改變的范圍;
greenSpeed: 粒子green在生命周期內的改變速度;
lifetime:生命周期
lifetimeRange:生命周期范圍 lifetime= lifetime(+/-) lifetimeRange
magnificationFilter:不是很清楚好像增加自己的大小
minificatonFilter:減小自己的大小
minificationFilterBias:減小大小的因子
name:粒子的名字
redRange:一個粒子的顏色red 能改變的范圍;
redSpeed; 粒子red在生命周期內的改變速度;
scale:縮放比例:
scaleRange:縮放比例范圍;
scaleSpeed:縮放比例速度:
spin:粒子旋轉角度
spinrange:粒子旋轉角度范圍
velocity:速度
velocityRange:速度范圍
xAcceleration:粒子x方向的加速度分量
yAcceleration:粒子y方向的加速度分量
zAcceleration:粒子z方向的加速度分量