more work on porting rc command parsing to Go

This commit is contained in:
Kovid Goyal
2022-08-30 15:49:26 +05:30
parent 79c8862d4c
commit 6f4968305a
19 changed files with 291 additions and 27 deletions

View File

@@ -70,6 +70,10 @@ func (self *RGBA) parse_rgb_strings(r string, g string, b string) bool {
return true
}
func (self *RGBA) AsRGB() uint32 {
return uint32(self.Blue) | (uint32(self.Green) << 8) | (uint32(self.Red) << 16)
}
type color_type struct {
is_numbered bool
val RGBA