func main() {
	b := raster.NewBitmap(400, 300)
	b.FillRgb(0xdfffef)
	b.Bézier2Rgb(20, 150, 500, -100, 300, 280, raster.Rgb(0x3f8fef))
	if err := b.WritePpmFile("bez2.ppm"); err != nil {
		fmt.Println(err)
	}
}
func main() {
	b := raster.NewBitmap(400, 300)
	b.FillRgb(0xffefbf)
	b.Bézier3Rgb(20, 200, 700, 50, -300, 50, 380, 150, raster.Rgb(0x3f8fef))
	if err := b.WritePpmFile("bez3.ppm"); err != nil {
		fmt.Println(err)
	}
}
func main() {
	b := raster.NewBitmap(400, 300)
	b.FillRgb(0xdfefff)
	blue := raster.Rgb(0x8fcfff)
	b.LineRgb(7, 12, 307, 122, blue)
	b.LineRgb(177, 12, 127, 222, blue)
	err := b.WritePpmFile("bresenham.ppm")
	if err != nil {
		fmt.Println(err)
	}
}