Skip to content

Commit

Permalink
change step factor for non-grid walkers
Browse files Browse the repository at this point in the history
  • Loading branch information
mangofeet committed May 15, 2024
1 parent 065b911 commit abacc9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions art/phungus/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ func (drawer Entangler) Draw(ctx *canvas.Context, card *nrdb.Printing) error {
var strokeWidth = 0.3

thisColor := baseColor
noiseStepFactor := 0.008

thisStartX := startX
thisStartY := startY
Expand All @@ -218,6 +219,7 @@ func (drawer Entangler) Draw(ctx *canvas.Context, card *nrdb.Printing) error {
colorFactor = -2 * int64(math.Abs(float64(colorFactor)))
grid = true
strokeWidth = 1.5
noiseStepFactor = 0.005
switch rngGlobal.Next(4) {
case 1:
thisColor = gridColor1
Expand Down Expand Up @@ -292,9 +294,10 @@ func (drawer Entangler) Draw(ctx *canvas.Context, card *nrdb.Printing) error {
B: uint8(math.Max(0, math.Min(float64(int64(thisColor.B)+colorFactor), 255))),
A: 0xff,
},
Noise: noise,
Grid: grid,
StrokeWidth: strokeWidth,
Noise: noise,
NoiseStepFactor: noiseStepFactor,
Grid: grid,
StrokeWidth: strokeWidth,
}
walkers = append(walkers, &wlk)
}
Expand Down

0 comments on commit abacc9c

Please sign in to comment.