File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ < h1 > Fill</ h1 >
2
+ < p > 最も基本的な描画コマンドである、< code > Fill</ code > を見てみましょう。</ p >
3
+ < h2 > コード</ h2 >
4
+ < pre data-codesrc ="/go/fill/main.go "> </ pre >
5
+ < div class ="grid-container ">
6
+ < div class ="grid-item-2 ">
7
+ < p > 結果はこのようになります:</ p >
8
+ </ div >
9
+ < div class ="grid-item-2 ">
10
+ < p class ="img screenshot "> < img src ="/images/go/fill.png " width ="320 " height ="240 "> </ p >
11
+ </ div >
12
+ </ div >
13
+ < h2 > コードの仕組み</ h2 >
14
+ < div class ="grid-container ">
15
+ < div class ="grid-item-2 ">
16
+ < pre data-codesrc ="/go/fill/main.go " data-codelinerange ="17-17 "> </ pre >
17
+ </ div >
18
+ < div class ="grid-item-2 ">
19
+ < p > < code > < a href ="https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2#Image.Fill "> (*ebiten.Image).Fill</ a > </ code > は画像を指定した色で塗りつぶす関数です。引数の < code > color</ code > は、標準パッケージの < code > < a href ="https://golang.org/pkg/image/color/ "> image/color</ a > </ code > で定義されている < code > < a href ="https://golang.org/pkg/image/color/#Color "> color.Color</ a > </ code > インターフェースを実装した値です。この例では、色の値は赤色を示しています(赤と透明度の値が < code > 0xff</ code > となっています。)</ p >
20
+ </ div >
21
+ </ div >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ <h2>はじめる</h2>
5
5
</ ul >
6
6
< h2 > グラフィック</ h3 >
7
7
< ul >
8
- < li > < a href ="/en /tour/fill.html "> Fill</ a > </ li >
8
+ < li > < a href ="/ja /tour/fill.html "> Fill</ a > </ li >
9
9
< li > < a href ="/en/tour/image.html "> Render an Image</ a > </ li >
10
10
< li > < a href ="/en/tour/geom.html "> Geometry Matrix</ a > </ li >
11
11
< li > < a href ="# "> Filter (TBD)</ a > </ li >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ <h3>はじめる</h3>
5
5
</ ul >
6
6
< h3 > グラフィック</ h3 >
7
7
< ul >
8
- < li > < a href ="/en /tour/fill.html "> Fill</ a > </ li >
8
+ < li > < a href ="/ja /tour/fill.html "> Fill</ a > </ li >
9
9
< li > < a href ="/en/tour/image.html "> Render an Image</ a > </ li >
10
10
< li > < a href ="/en/tour/geom.html "> Geometry Matrix</ a > </ li >
11
11
< li > < a href ="# "> Filter (TBD)</ a > </ li >
You can’t perform that action at this time.
0 commit comments