on master help sign in
rename `opacity` to `alpha` to avoid name collision
commit1abea68ea27a9eafc72cd7c2a96d9a956e5588ae authorEvan Czaplicki <info@elm-lang.org> dateFri 2 Aug 2013, 01:53 (13 years ago) parent8bc39cd
1 file changed+3−3
libraries/Graphics/Collage.elm+3−3
libraries/Graphics/Collage.elm+3−3
@@ -151,9 +151,9 @@ moveX x f = { f | x <- f.x + x }
151151moveY : Float -> Form -> Form
152152moveY y f = { f | y <- f.y + y }
153153
154−-- Set the opacity of a `Form`. The default is 1, and 0 is totally transparent.
155−opacity : Float -> Form -> Form
156−opacity a f = { f | alpha <- a }
154+-- Set the alpha of a `Form`. The default is 1, and 0 is totally transparent.
155+alpha : Float -> Form -> Form
156+alpha a f = { f | alpha <- a }
157157
158158-- A collage is a collection of 2D forms. There are no strict positioning
159159-- relationships between forms, so you are free to do all kinds of 2D graphics.