Commit adab129
committed
Add clear method to Graphics2D interface for viewport clearing
Introduced a clear(math.Color color) method in the Graphics2D interface.
The method allows clearing the entire viewport with a specified color,
resetting the drawing surface.
Useful for initializing or refreshing the rendering context during
updates.1 parent 5ab41c3 commit adab129
File tree
2 files changed
+16
-0
lines changed- src/main/java/workspace
- ui
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
553 | 558 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
229 | 240 | | |
230 | 241 | | |
231 | 242 | | |
| |||
0 commit comments