Variables
{
	%tint = (0,255,0)
}

EffectDefinition
{
	EffectComponent ParticleEffect "rainbow base"
	{
		RepeatTime		0.02
		ParticleLifespan	0.25
		BlendMode		alpha
		Texture			"data/gfx/particles/offset_circle_8.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				orientation=180
				speed=100
				rotationalSpeed=600
				direction=180
				spawnOffsetAbsX=10
				spawnOffsetAbsY=15
			}

			SpawnParticles
			{
				count=1
				orientation=180
				speed=100
				rotationalSpeed=-600
				direction=180
				spawnOffsetAbsX=10
				spawnOffsetAbsY=-15
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(128, 128, 128)
				age=1, rgb=%tint
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.1, alpha=255
				age=0.7, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0, 0)
				age=1, scale=(1.5, 1.5)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
			}
		}
	}
	


	EffectComponent ParticleEffect "rainbow base"
	{
		RepeatTime		0.02
		ParticleLifespan	0.25
		BlendMode		alpha
		Texture			"data/gfx/particles/offset_circle_8.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				orientation=180
				speed=50
				rotationalSpeed=600
				direction=180
				spawnOffsetAbsX=0
				spawnOffsetAbsY=15
			}

			SpawnParticles
			{
				count=1
				orientation=180
				speed=50
				rotationalSpeed=-600
				direction=180
				spawnOffsetAbsX=0
				spawnOffsetAbsY=-15
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(128, 128, 128)
				age=1, rgb=%tint
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.1, alpha=255
				age=0.7, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0, 0)
				age=1, scale=(2, 2)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
			}
		}
	}	

		
}