proc color*(self: ColorRect): Color {.gcsafe, locks: 0.}
proc `color =`*(self: ColorRect; val: Color) {.gcsafe, locks: 0.}