LevelMapPainter constructor

LevelMapPainter({
  1. required LevelMapParams params,
  2. ImagesToPaint? imagesToPaint,
})

Implementation

LevelMapPainter({required this.params, this.imagesToPaint})
    : _pathPaint = Paint()
        ..strokeWidth = params.pathStrokeWidth
        ..color = params.pathColor
        ..strokeCap = StrokeCap.round,
      _shadowPaint = Paint()
        ..strokeWidth = params.pathStrokeWidth
        ..color = params.pathColor.withOpacity(0.2)
        ..strokeCap = StrokeCap.round,
      _nextLevelFraction =
          params.currentLevel.remainder(params.currentLevel.floor());