Skip to content

Commit 85642af

Browse files
transparency
1 parent ef3178b commit 85642af

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

examples/10_KeyboardDemoAdvanced.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ void iDraw()
1515
// Clear the screen
1616
iClear();
1717

18+
iSetColor(255, 255, 255);
19+
iFilledRectangle(0, 0, iScreenWidth, iScreenHeight);
1820
// Set drawing color Red
19-
iSetColor(255, 0, 0);
21+
iSetTransparentColor(255, 0, 0, 0.5);
2022
iFilledCircle(ball_1_x, ball_1_y, ball_radius);
2123

2224
// Set drawing color Blue
23-
iSetColor(0, 0, 255);
25+
iSetTransparentColor(0, 0, 255, 0.5);
2426
iFilledCircle(ball_2_x, ball_2_y, ball_radius);
2527
}
2628

0 commit comments

Comments
 (0)