Skip to content

wrnrlr/polyline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polyline

A module for Gio to draw polylines.

It's currently a very naive implementation that draws every line segment and joins them with a circle. This solution is not suitable for transparent colors because overlapping parts are painted repeatedly resulting in an uneven coloring.

Hopefully we can fix this in the future and keep using the same api.

API

line := []f32.Point{{20, 20}, {20, 70}, {80, 80}, {110, 100}, {300, 500}}
polyline.Draw(line, width, color, gtx)

See example on how to use this to make a paint app.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages