Skip to content

Commit a190cd5

Browse files
Revert changes to colors in Breakout game (#4325)
# Objective - existing Breakout colors are too dark and saturated in places ## Solution - Revert colors in Breakout examples to original values.
1 parent ab83336 commit a190cd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/game/breakout.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ const BRICK_SIZE: Vec3 = const_vec3!([150.0, 30.0, 1.0]);
3535
const SCOREBOARD_FONT_SIZE: f32 = 40.0;
3636
const SCOREBOARD_TEXT_PADDING: Val = Val::Px(5.0);
3737

38-
const BACKGROUND_COLOR: Color = Color::rgb(0.95, 0.95, 0.95);
38+
const BACKGROUND_COLOR: Color = Color::rgb(0.9, 0.9, 0.9);
3939
const PADDLE_COLOR: Color = Color::rgb(0.5, 0.5, 1.0);
4040
const BALL_COLOR: Color = Color::rgb(1.0, 0.5, 0.5);
4141
const BRICK_COLOR: Color = Color::rgb(0.5, 0.5, 1.0);
42-
const WALL_COLOR: Color = Color::DARK_GRAY;
43-
const TEXT_COLOR: Color = Color::BLUE;
44-
const SCORE_COLOR: Color = Color::RED;
42+
const WALL_COLOR: Color = Color::rgb(0.8, 0.8, 0.8);
43+
const TEXT_COLOR: Color = Color::rgb(0.5, 0.5, 1.0);
44+
const SCORE_COLOR: Color = Color::rgb(1.0, 0.5, 0.5);
4545

4646
fn main() {
4747
App::new()

0 commit comments

Comments
 (0)