Color, Gradient and Pattern are all const, but Brush itself is not. It may be inconvenient, e.g. it's not possible to make a static Brush field.
Color
Gradient
Pattern
Brush
That is just an over sight since Brush was written before we had const mixins. I pushed a fix. Thanks for pointing that out.
Login or Signup to reply.
dsav Tue 3 May 2011
Color
,Gradient
andPattern
are all const, butBrush
itself is not. It may be inconvenient, e.g. it's not possible to make a static Brush field.brian Tue 3 May 2011
That is just an over sight since Brush was written before we had const mixins. I pushed a fix. Thanks for pointing that out.