Skip to content

Commit

Permalink
fix erroneous fe flood
Browse files Browse the repository at this point in the history
  • Loading branch information
ajstarks committed Sep 23, 2021
1 parent 75cfd57 commit c3b6e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion float/svg.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ func (svg *SVG) FeDistantLight(fs Filterspec, azimuth, elevation float64, s ...s
// FeFlood specifies a flood filter primitive
// Standard reference: http://www.w3.org/TR/SVG11/filters.html#feFloodElement
func (svg *SVG) FeFlood(fs Filterspec, color string, opacity float64, s ...string) {
svg.printf(`<feFlood %s flood-fill-color="%s" flood-fill-opacity="%g" %s`,
svg.printf(`<feFlood %s flood-color="%s" flood-opacity="%g" %s`,
fsattr(fs), color, opacity, endstyle(s, emptyclose))
}

Expand Down
2 changes: 1 addition & 1 deletion svg.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func (svg *SVG) FeDistantLight(fs Filterspec, azimuth, elevation float64, s ...s
// FeFlood specifies a flood filter primitive
// Standard reference: http://www.w3.org/TR/SVG11/filters.html#feFloodElement
func (svg *SVG) FeFlood(fs Filterspec, color string, opacity float64, s ...string) {
svg.printf(`<feFlood %s flood-fill-color="%s" flood-fill-opacity="%g" %s`,
svg.printf(`<feFlood %s flood-color="%s" flood-opacity="%g" %s`,
fsattr(fs), color, opacity, endstyle(s, emptyclose))
}

Expand Down

0 comments on commit c3b6e2f

Please sign in to comment.