i made texture here but i don't know how to assign it It actually worked in blender cycles thanks But why when I shift to blender render I see white ??
Add a new material and go to Texture header. Add a new texture, set its Type to Blend. In Blend panel click the Vertical button. You may also change the Progression type to Easing for smoother colors transition.