I was testing the RGB color mechanic on Excel, so I did the following:
sub paint() red = 255 blue = 0 green = 0 Max = 48 For col = 1 To Max For Row = 1 To Max Cells(Row, col).Interior.Color = RGB(red - col * Int(256 / (Max * 2)) - Row * Int(256 / (Max * 2)), green + col * Int(256 / Max), blue + Row * Int(256 / Max)) Next Row Next col end sub
This makes an RBG chart on Excel filling the interior color of every cell on a
max x max square. It was just made as a test and I think it worked pretty well.
I am looking for improvement, if possible.