mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
ebitenutil: English
This commit is contained in:
parent
f08d21866a
commit
93173506f5
@ -43,7 +43,7 @@ func colorScale(clr color.Color) (rf, gf, bf, af float64) {
|
|||||||
|
|
||||||
// DrawLine draws a line on the given destination dst.
|
// DrawLine draws a line on the given destination dst.
|
||||||
//
|
//
|
||||||
// DrawLine is intented to be used mainly for debugging or prototyping purpose.
|
// DrawLine is intended to be used mainly for debugging or prototyping purpose.
|
||||||
func DrawLine(dst *ebiten.Image, x1, y1, x2, y2 float64, clr color.Color) {
|
func DrawLine(dst *ebiten.Image, x1, y1, x2, y2 float64, clr color.Color) {
|
||||||
ew, eh := emptyImage.Size()
|
ew, eh := emptyImage.Size()
|
||||||
length := math.Hypot(x2-x1, y2-y1)
|
length := math.Hypot(x2-x1, y2-y1)
|
||||||
@ -58,7 +58,7 @@ func DrawLine(dst *ebiten.Image, x1, y1, x2, y2 float64, clr color.Color) {
|
|||||||
|
|
||||||
// DrawRect draws a rectangle on the given destination dst.
|
// DrawRect draws a rectangle on the given destination dst.
|
||||||
//
|
//
|
||||||
// DrawRect is intented to be used mainly for debugging or prototyping purpose.
|
// DrawRect is intended to be used mainly for debugging or prototyping purpose.
|
||||||
func DrawRect(dst *ebiten.Image, x, y, width, height float64, clr color.Color) {
|
func DrawRect(dst *ebiten.Image, x, y, width, height float64, clr color.Color) {
|
||||||
ew, eh := emptyImage.Size()
|
ew, eh := emptyImage.Size()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user