2D shadows implemented in Dart