聲明 func ColorGet(r int, g int, b int) Color go 參數 輸入 名稱 類型 描述 R Int 顏色的紅色通道值,取值範圍[0,255],超過範圍會clamp至合法值 G Int 顏色的綠色通道值,取值範圍[0,255],超過範圍會clamp至合法值 B Int 顏色的藍色通道值,取值範圍[0,255],超過範圍會clamp至合法值 返回 類型 描述 Color 建構的顏色值