King Krishna Deva Raya organized a food festival in Vijayanagar, mandating sweet shops to produce colorful sweets. Tenali Rama Krishna, concerned about the misuse of dyes for sweets, opened a dye shop to secure his own supply, highlighting that sweet shops were using harmful dyes instead of permitted food colors. The king realized the situation and rescinded his orders, ensuring the safety of the festival treats and the public.