You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: palette.go
    path of file: ./repos/go-captcha/captcha
    
    the code of the file until where you have to start completion: /**
 * @Author Awen
 * @Description Captcha Palette
 * @Date 2021/7/18
 * @Email wengaolng@gmail.com
 **/

package captcha

import (
	"image"
	"image/color"
	"math"
)

// Point is a type
/**
 * @Description: 点
 */
type Point struct {
	X, Y int
}

// Palette is a type
/**
 * @Description: 调色板

    
func (p *Palette) drawBeeline(point1 Point, point2 Point, lineColor color.RGBA) {
	dx := math.Abs(float64(point1.X - point2.X))
	dy := math.Abs(float64(point2.Y - point1.Y))
	sx, sy := 1, 1
	if point1.X >= point2.X {
		sx = -1
	}
	if point1.Y >= point2.Y {
		sy = -1
	}
	err := dx - dy
	for {
		p.Set(point1.X, point1.Y, lineColor)
		p.Set(point1.X + 1, point1.Y, lineColor)
		p.Set(point1.X - 1, point1.Y, lineColor)
		p.Set(point1.X + 2, point1.Y, lineColor)
		p.Set(point1.X - 2, point1.Y, lineColor)
		if point1.X == point2.X && point1.Y == point2.Y {
			return
		}
		e2 := err * 2
		if e2 > -dy {
			err -= dy
			point1.X += sx
		}
		if e2 < dx {
			err += dx
			point1.Y += sy
		}
	}
}