Load other settings into Parameters from user defaults

This commit is contained in:
Eryn Wells 2018-10-13 20:51:23 -07:00
parent f1a326e1cb
commit 491274605c

View file

@ -19,6 +19,16 @@ class ViewController: NSViewController, RendererDelegate {
p.color0 = color0
let color1 = defaults.color1 ?? Float4(0.88, 0.50, 1, 1)
p.color1 = color1
let color2 = defaults.color2 ?? Float4(0.24, 0.66, 1, 1)
p.color2 = color2
let color3 = defaults.color3 ?? Float4(0.61, 0.61, 1, 1)
p.color3 = color3
let rotation = defaults.colorRotation
p.colorTransform = Matrix3x3.rotation(angle: rotation)
let feather = defaults.feather
p.feather = feather
let target = defaults.target
p.target = target
return p
}