transparent example

This commit is contained in:
Michael Fogleman 2016-02-19 13:34:47 -05:00
parent e554ef45e8
commit 207b76187a

View File

@ -5,8 +5,6 @@ import "github.com/fogleman/gg"
func main() { func main() {
const S = 1024 const S = 1024
dc := gg.NewContext(S, S) dc := gg.NewContext(S, S)
dc.SetRGB(1, 1, 1)
dc.Clear()
dc.SetRGBA(0, 0, 0, 0.1) dc.SetRGBA(0, 0, 0, 0.1)
for i := 0; i < 360; i += 15 { for i := 0; i < 360; i += 15 {
dc.Push() dc.Push()