// This is one of the plasma clouds which appears at the top and bottom of the screen and scrolls and colour-cycles and whatnot.

#define completion_effect_brightness_percentage			v0

#define interpolation_speed		V0
#define colour_divider			v1
#define global_colour_percentage	v2
#define effect_level			v3

	let draw_override = DRAW_OVERRIDE_OVERRIDE_ALWAYS

	let world_x = 0
	let world_y = 0

	set_private_co_ords

	let opengl_booleans = OPENGL_BOOLEAN_BLEND_ADD + opengl_boolean_vertex_colour_alpha
	LET OPENGL_BOOLEANS = OPENGL_BOOLEANS + OPENGL_BOOLEAN_INTERPOLATED
	let base_frame = 4
	let interpolation_speed = 25

	let draw_order = 15

	let counter = 0
	let colour_divider = 160

	let opengl_booleans = opengl_booleans + OPENGL_BOOLEAN_SCALE
	let opengl_booleans = opengl_booleans + OPENGL_BOOLEAN_FILTERED

	let opengl_scale_x = 30000
	let opengl_scale_y = 19000

	let sprite = clouds[arb]

	let current_frame = base_frame
	let interpolated_frame = base_frame + 1
	let draw_mode = DRAW_MODE_SPRITE

start

	let INTERPOLATION_X_PERCENTAGE = INTERPOLATION_X_PERCENTAGE + interpolation_speed !< 0 !> 10000

	let opengl_vertex_red = 32 % parent.completion_effect_brightness_percentage
	let opengl_vertex_green = 0
	let opengl_vertex_blue = 96 % parent.completion_effect_brightness_percentage

end




