better channels

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-09-13 17:23:56 -07:00
parent 492786f66d
commit 7bdd8048b0
18 changed files with 211 additions and 88 deletions

View File

@@ -126,14 +126,14 @@ struct ProfilePicView_Previews: PreviewProvider {
func hex_to_rgb(_ hex: String) -> Color {
guard hex.count >= 6 else {
return Color.black
return Color.white
}
let arr = Array(hex.utf8)
var rgb: [UInt8] = []
var i: Int = 0
var i: Int = arr.count - 12
while i < 6 {
while i < arr.count {
let cs1 = arr[i]
let cs2 = arr[i+1]