Using classes in nodes
Quick fix: declare the class in template.php but instantiate it in your node template (if you check your php error log you probably had something like "Call to a member function red_form() on a non-object in ..." in it).  Also, I am assuming it's a typo that you had $colorforms and $color_form in your example above.