TIL: In Cocoa, there’s a kind of color called a “pattern color” which is an image. So you can call “setBackgroundColor:” to set an image.
-
-
@pcwalton what is a colour but a 1x1 tiled image, really? Obvious just a very reasonable instance of a contravariant interface. Very elegantThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@pcwalton Funny, even ancient GDI had the concept of a "brush" to abstract that: https://msdn.microsoft.com/en-us/library/windows/desktop/dd145038(v=vs.85).aspx … -
@TedMielczarek@pcwalton Yup, Cairo too - you create a pattern from a surface and paint it.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.