how to color a box

hey guys, i cant quite figure this out as the script refence doesn’t give much info on how to do it "static var color : Color "

anyways im looking to color a simple gui button or box but not sure how to do so any help would be great!

function OnGUI () {
if(GUI.Button(Rect(10,10,10,10),hi)) { }

how would i make this a color? thanks

Change GUI.color and see if it gives the effect you want.

GUI.color = Color.red; // Substitute for your own colour

if (GUILayout.Button("I'm Very Red")) {
    ...
}