using System.ComponentModel.DataAnnotations;
namespace HelloWorldMvcApp
public class SampleViewModel
[Display(Name = "Ask Magic 8 Ball any question:")]
public string Question { get; set; }
public string Answer { get; set; }
public string Color { get {return HSV2RGB(); }}
public string HSV2RGB_en()
int section = (int)hue / 60;
double x = chroma * (1 - Math.Abs(((hue / 60) % 2) - 1));
return string.Format("#{0:x2}{1:x2}{2:x2}", (int)(r*255), (int)(g*255), (int)(b*255));
int section = (int)hue / 60;
double f = hue/60 - section;
double t = v * (1-s*(1-f));
return string.Format("#{0:x2}{1:x2}{2:x2}", (int)(r*255), (int)(g*255), (int)(b*255));