mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-07 16:34:27 +01:00
Updated Tutorial:Screen, colors and squares (markdown)
parent
9ad9454bea
commit
28fe120fa8
@ -59,7 +59,7 @@ Alright, now you know how to create a new color, and it's time to paint your gam
|
|||||||
|
|
||||||
# Fill the screen with the color
|
# Fill the screen with the color
|
||||||
|
|
||||||
There's a `Fill(clr color.Color)` function for the screen in Ebiten, it used to fill the screen with a color, and you will need to pass a `color.Color` data type to the function, that's exactly what our color struct returns! So what are we waiting for?
|
There's a `Fill(clr color.Color)` function for the screen in Ebiten. It is used to fill the screen with a color, and you will need to pass a `color.Color` data type to the function. That's exactly what our color struct returns! So what are we waiting for?
|
||||||
|
|
||||||
Remember the `update()` function? Yeah, the function which keeps being called by Ebiten, and we'll paint the screen in the function.
|
Remember the `update()` function? Yeah, the function which keeps being called by Ebiten, and we'll paint the screen in the function.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user