func ExampleFpdf_LinearGradient() {
	pdf := gofpdf.New("", "", "", "")
	pdf.SetFont("Helvetica", "", 12)
	pdf.AddPage()
	pdf.LinearGradient(0, 0, 210, 100, 250, 250, 255, 220, 220, 225, 0, 0, 0, .5)
	pdf.LinearGradient(20, 25, 75, 75, 220, 220, 250, 80, 80, 220, 0, .2, 0, .8)
	pdf.Rect(20, 25, 75, 75, "D")
	pdf.LinearGradient(115, 25, 75, 75, 220, 220, 250, 80, 80, 220, 0, 0, 1, 1)
	pdf.Rect(115, 25, 75, 75, "D")
	pdf.RadialGradient(20, 120, 75, 75, 220, 220, 250, 80, 80, 220,
		0.25, 0.75, 0.25, 0.75, 1)
	pdf.Rect(20, 120, 75, 75, "D")
	pdf.RadialGradient(115, 120, 75, 75, 220, 220, 250, 80, 80, 220,
		0.25, 0.75, 0.75, 0.75, 0.75)
	pdf.Rect(115, 120, 75, 75, "D")
	fileStr := example.Filename("Fpdf_LinearGradient_gradient")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
	// Output:
	// Successfully generated pdf/Fpdf_LinearGradient_gradient.pdf
}
// ExampleFpdf_LinearGradient deomstrates various gradients.
ExampleFpdf_LinearGradient deomstrates various gradients.
// ExampleFpdf_LinearGradient deomstrates various gradients .
func ExampleFpdf_LinearGradient() {
	pdf := gofpdf.New("", "", "", "")
	pdf.SetFont("Helvetica", "", 12)
	pdf.AddPage()
	pdf.LinearGradient(0, 0, 210, 100, 250, 250, 255, 220, 220, 225, 0, 0, 0, .5)
	pdf.LinearGradient(20, 25, 75, 75, 220, 220, 250, 80, 80, 220, 0, .2, 0, .8)
	pdf.Rect(20, 25, 75, 75, "D")
	pdf.LinearGradient(115, 25, 75, 75, 220, 220, 250, 80, 80, 220, 0, 0, 1, 1)
	pdf.Rect(115, 25, 75, 75, "D")
	pdf.RadialGradient(20, 120, 75, 75, 220, 220, 250, 80, 80, 220,
		0.25, 0.75, 0.25, 0.75, 1)
	pdf.Rect(20, 120, 75, 75, "D")
	pdf.RadialGradient(115, 120, 75, 75, 220, 220, 250, 80, 80, 220,
		0.25, 0.75, 0.75, 0.75, 0.75)
	pdf.Rect(115, 120, 75, 75, "D")
	fileStr := example.Filename("Fpdf_LinearGradient_gradient")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
}
func ExampleFpdf_LinearGradient ( ) { pdf := gofpdf . New ( " " , " " , " " , " " ) pdf . SetFont ( " " , " " , 12 ) pdf . AddPage ( ) pdf . LinearGradient ( 0 , 0 , 210 , 100 , 250 , 250 , 255 , 220 , 220 , 225 , 0 , 0 , 0 , .5 ) pdf . LinearGradient ( 20 , 25 , 75 , 75 , 220 , 220 , 250 , 80 , 80 , 220 , 0 , .2 , 0 , .8 ) pdf . Rect ( 20 , 25 , 75 , 75 , " " ) pdf . LinearGradient ( 115 , 25 , 75 , 75 , 220 , 220 , 250 , 80 , 80 , 220 , 0 , 0 , 1 , 1 ) pdf . Rect ( 115 , 25 , 75 , 75 , " " ) pdf . RadialGradient ( 20 , 120 , 75 , 75 , 220 , 220 , 250 , 80 , 80 , 220 , 0.25 , 0.75 , 0.25 , 0.75 , 1 ) pdf . Rect ( 20 , 120 , 75 , 75 , " " ) pdf . RadialGradient ( 115 , 120 , 75 , 75 , 220 , 220 , 250 , 80 , 80 , 220 , 0.25 , 0.75 , 0.75 , 0.75 , 0.75 ) pdf . Rect ( 115 , 120 , 75 , 75 , " " ) fileStr := example . Filename ( " " ) err := pdf . OutputFileAndClose ( fileStr ) example . Summary ( err , fileStr ) }
ExampleFpdf_LinearGradient deomstrates various gradients.
ExampleFpdf_LinearGradient deomstrates various gradients .
// Output: // Successfully generated pdf/Fpdf_LinearGradient_gradient.pdf