renamed the gradient creation methods; removed SetLineEnd function
This commit is contained in:
parent
ed34e3d8c4
commit
a36c635367
2 changed files with 4 additions and 9 deletions
|
@ -341,11 +341,6 @@ func (cv *Canvas) SetLineJoin(join lineJoin) {
|
||||||
cv.state.lineJoin = join
|
cv.state.lineJoin = join
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetLineEnd is a synonym for SetLineCap that was misnamed by mistake. Deprecated
|
|
||||||
func (cv *Canvas) SetLineEnd(cap lineCap) {
|
|
||||||
cv.SetLineCap(cap)
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetLineCap sets the style of line endings for rendering a path with Stroke
|
// SetLineCap sets the style of line endings for rendering a path with Stroke
|
||||||
// The value can be Butt, Square, or Round
|
// The value can be Butt, Square, or Round
|
||||||
func (cv *Canvas) SetLineCap(cap lineCap) {
|
func (cv *Canvas) SetLineCap(cap lineCap) {
|
||||||
|
|
|
@ -38,10 +38,10 @@ type RadialGradient struct {
|
||||||
data backendbase.Gradient
|
data backendbase.Gradient
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewLinearGradient creates a new linear gradient with
|
// CreateLinearGradient creates a new linear gradient with
|
||||||
// the coordinates from where to where the gradient
|
// the coordinates from where to where the gradient
|
||||||
// will apply on the canvas
|
// will apply on the canvas
|
||||||
func (cv *Canvas) NewLinearGradient(x0, y0, x1, y1 float64) *LinearGradient {
|
func (cv *Canvas) CreateLinearGradient(x0, y0, x1, y1 float64) *LinearGradient {
|
||||||
return &LinearGradient{
|
return &LinearGradient{
|
||||||
cv: cv,
|
cv: cv,
|
||||||
opaque: true,
|
opaque: true,
|
||||||
|
@ -51,11 +51,11 @@ func (cv *Canvas) NewLinearGradient(x0, y0, x1, y1 float64) *LinearGradient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRadialGradient creates a new linear gradient with
|
// CreateRadialGradient creates a new radial gradient with
|
||||||
// the coordinates and the radii for two circles. The
|
// the coordinates and the radii for two circles. The
|
||||||
// gradient will apply from the first to the second
|
// gradient will apply from the first to the second
|
||||||
// circle
|
// circle
|
||||||
func (cv *Canvas) NewRadialGradient(x0, y0, r0, x1, y1, r1 float64) *RadialGradient {
|
func (cv *Canvas) CreateRadialGradient(x0, y0, r0, x1, y1, r1 float64) *RadialGradient {
|
||||||
return &RadialGradient{
|
return &RadialGradient{
|
||||||
cv: cv,
|
cv: cv,
|
||||||
opaque: true,
|
opaque: true,
|
||||||
|
|
Loading…
Reference in a new issue