Make colour readonly

This commit is contained in:
Derrick Timmermans 2020-11-22 18:37:49 +01:00
parent 458016d17d
commit ba7ce4c933
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ private class VisualisationDrawNode : DrawNode
// Assuming the logo is a circle, we don't need a second dimension.
private float size;
private Color4 colour = Color4.White.Opacity(.2f);
private readonly Color4 colour = Color4.White.Opacity(.2f);
private float[] audioData;
private readonly QuadBatch<TexturedVertex2D> vertexBatch = new QuadBatch<TexturedVertex2D>(100, 10);