@@ -28,7 +28,7 @@ public void Render(ICanvas canvas, int width, int height, IPixelMapper pixelMapp
2828 var tunnelBaseColour = BuildModeAwareColour ( TerrainMapRenderer . GetTerrainColour ( firstMountain ) ) ;
2929 var entranceColourArray = new [ ] { tunnelBaseColour , tunnelRoofColour , tunnelBaseColour } ;
3030
31- Dictionary < ( int column , int row ) , Tunnel > entrances = new ( ) ;
31+ Dictionary < ( int column , int row ) , Tunnel > entrances = [ ] ;
3232
3333 foreach ( Track track in _trackLayout )
3434 {
@@ -202,13 +202,13 @@ void DrawAction(ICanvas c)
202202 {
203203 var cellSize = pixelMapper . CellSize ;
204204 var quarterCellSize = 0.25f * cellSize ;
205- var threequarterCellSize = 0.75f * cellSize ;
205+ var threeQuarterCellSize = 0.75f * cellSize ;
206206
207207 c . DrawHorizontalGradientRect ( 0 , 0 , cellSize , quarterCellSize , colours ) ;
208- c . DrawVerticalGradientRect ( threequarterCellSize , 0 , quarterCellSize , cellSize , colours ) ;
209- c . DrawHorizontalGradientRect ( 0 , threequarterCellSize , cellSize , quarterCellSize , colours ) ;
210- c . DrawGradientCircle ( threequarterCellSize , 0 , quarterCellSize , quarterCellSize , cellSize , 0 , cellSize , colours ) ;
211- c . DrawGradientCircle ( threequarterCellSize , threequarterCellSize , quarterCellSize , quarterCellSize , cellSize , cellSize , cellSize , colours ) ;
208+ c . DrawVerticalGradientRect ( threeQuarterCellSize , 0 , quarterCellSize , cellSize , colours ) ;
209+ c . DrawHorizontalGradientRect ( 0 , threeQuarterCellSize , cellSize , quarterCellSize , colours ) ;
210+ c . DrawGradientCircle ( threeQuarterCellSize , 0 , quarterCellSize , quarterCellSize , cellSize , 0 , cellSize , colours ) ;
211+ c . DrawGradientCircle ( threeQuarterCellSize , threeQuarterCellSize , quarterCellSize , quarterCellSize , cellSize , cellSize , cellSize , colours ) ;
212212 }
213213 }
214214
@@ -220,16 +220,16 @@ void DrawAction(ICanvas c)
220220 {
221221 var cellSize = pixelMapper . CellSize ;
222222 var quarterCellSize = 0.25f * cellSize ;
223- var threequarterCellSize = 0.75f * cellSize ;
223+ var threeQuarterCellSize = 0.75f * cellSize ;
224224
225225 c . DrawVerticalGradientRect ( 0 , 0 , quarterCellSize , cellSize , colours ) ;
226226 c . DrawHorizontalGradientRect ( 0 , 0 , cellSize , quarterCellSize , colours ) ;
227- c . DrawVerticalGradientRect ( 0 , threequarterCellSize , quarterCellSize , cellSize , colours ) ;
228- c . DrawHorizontalGradientRect ( 0 , threequarterCellSize , cellSize , quarterCellSize , colours ) ;
227+ c . DrawVerticalGradientRect ( 0 , threeQuarterCellSize , quarterCellSize , cellSize , colours ) ;
228+ c . DrawHorizontalGradientRect ( 0 , threeQuarterCellSize , cellSize , quarterCellSize , colours ) ;
229229 c . DrawGradientCircle ( 0 , 0 , quarterCellSize , quarterCellSize , 0 , 0 , cellSize , colours ) ;
230- c . DrawGradientCircle ( threequarterCellSize , 0 , quarterCellSize , quarterCellSize , cellSize , 0 , cellSize , colours ) ;
231- c . DrawGradientCircle ( threequarterCellSize , threequarterCellSize , quarterCellSize , quarterCellSize , cellSize , cellSize , cellSize , colours ) ;
232- c . DrawGradientCircle ( 0 , threequarterCellSize , quarterCellSize , quarterCellSize , 0 , cellSize , cellSize , colours ) ;
230+ c . DrawGradientCircle ( threeQuarterCellSize , 0 , quarterCellSize , quarterCellSize , cellSize , 0 , cellSize , colours ) ;
231+ c . DrawGradientCircle ( threeQuarterCellSize , threeQuarterCellSize , quarterCellSize , quarterCellSize , cellSize , cellSize , cellSize , colours ) ;
232+ c . DrawGradientCircle ( 0 , threeQuarterCellSize , quarterCellSize , quarterCellSize , 0 , cellSize , cellSize , colours ) ;
233233 }
234234 }
235235
@@ -315,9 +315,9 @@ void DrawAction(ICanvas c)
315315 var cellSize = pixelMapper . CellSize ;
316316 var halfCellSize = 0.5f * pixelMapper . CellSize ;
317317
318- c . DrawVerticalGradientRect ( 0 , 0 , cellSize , halfCellSize , new Color [ ] { darkColour , lightColour } ) ;
319- c . DrawGradientCircle ( 0 , halfCellSize , halfCellSize , halfCellSize , 0 , cellSize , halfCellSize , new [ ] { darkColour , lightColour } ) ;
320- c . DrawGradientCircle ( halfCellSize , halfCellSize , halfCellSize , halfCellSize , cellSize , cellSize , halfCellSize , new [ ] { darkColour , lightColour } ) ;
318+ c . DrawVerticalGradientRect ( 0 , 0 , cellSize , halfCellSize , [ darkColour , lightColour ] ) ;
319+ c . DrawGradientCircle ( 0 , halfCellSize , halfCellSize , halfCellSize , 0 , cellSize , halfCellSize , [ darkColour , lightColour ] ) ;
320+ c . DrawGradientCircle ( halfCellSize , halfCellSize , halfCellSize , halfCellSize , cellSize , cellSize , halfCellSize , [ darkColour , lightColour ] ) ;
321321 }
322322 }
323323
@@ -339,7 +339,7 @@ void DrawAction(ICanvas c)
339339 var cellSize = pixelMapper . CellSize ;
340340 var halfCellSize = 0.5f * pixelMapper . CellSize ;
341341
342- c . DrawGradientCircle ( 0 , 0 , cellSize , cellSize , 0 , halfCellSize , halfCellSize , new [ ] { lightColour , darkColour } ) ;
342+ c . DrawGradientCircle ( 0 , 0 , cellSize , cellSize , 0 , halfCellSize , halfCellSize , [ lightColour , darkColour ] ) ;
343343 }
344344 }
345345
0 commit comments