mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
examples/fontvector: adjust width
This commit is contained in:
parent
477bff3f62
commit
881d3b2018
@ -129,7 +129,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
|
||||
g.indices = g.indices[:0]
|
||||
|
||||
op := &vector.StrokeOptions{}
|
||||
op.Width = 3 * (float32(math.Sin(float64(g.tick)*2*math.Pi/180)) + 1)
|
||||
op.Width = 7*(float32(math.Sin(float64(g.tick)*2*math.Pi/180))+1) + 1
|
||||
op.LineJoin = vector.LineJoinRound
|
||||
op.LineCap = vector.LineCapRound
|
||||
g.vertices, g.indices = path.AppendVerticesAndIndicesForStroke(g.vertices, g.indices, op)
|
||||
|
Loading…
Reference in New Issue
Block a user