Does Rainbow Energy count as Darkness and Metal energy?
For the purposes of paying the cost of an attack, yes. Though the additional effects will not be provided.
Source: WotC Chat (2000-11-09)

Relevant cards

Note: All applicable cards may not be listed below.
HGSS1_104
PL1_121