Skip to content

Wrong line Cap style for closed shapes. #191

Open
@setanarut

Description

@setanarut

There is an unwanted blemish on the default circle shape. line start and end points overlap.

Ekran Resmi 2023-09-22 06 54 27

package main

import (
	"github.com/fogleman/gg"
)

func main() {
	d := gg.NewContext(200, 200)
	d.SetHexColor("000")
	d.Clear()
	d.SetHexColor("FFF")
	d.DrawCircle(100, 100, 50)
	// d.SetLineCapButt() <- this should be the default style and belong to the circle.
	d.Stroke()
	d.SavePNG("canvas.png")
}

canvas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions