Skip to content

Commit

Permalink
Need to use solutionValue now
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcmyers committed Apr 6, 2023
1 parent 6ec7524 commit 649efe1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/spiral.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ for (let i = 0; i < steps; i++) {
let c = nearZero(minus(border.w(), canvasRect().x()))
let success = updateValuation()

let mw = Constrain.evaluate(border.w()),
mh = Constrain.evaluate(border.h())
let mw = border.w().solutionValue, mh = border.h().solutionValue
let phi = mw/mh
t = label("The Golden Ratio is approximately " + phi, 30, "Palatino", "yellow")
align("center", "none", t, border)
Expand Down

0 comments on commit 649efe1

Please sign in to comment.