on master help sign in
rename `opacity` to `alpha` to avoid name collision
1abea68Evan Czaplicki
libraries/Graphics/Collage.elm+3−3
@@ -151,9 +151,9 @@ moveX x f = { f | x <- f.x + x }
151moveY : Float -> Form -> Form
151moveY : Float -> Form -> Form
152moveY y f = { f | y <- f.y + y }
152moveY y f = { f | y <- f.y + y }
153
153
154−-- Set the opacity of a `Form`. The default is 1, and 0 is totally transparent.
154+-- Set the alpha of a `Form`. The default is 1, and 0 is totally transparent.
155−opacity : Float -> Form -> Form
155+alpha : Float -> Form -> Form
156−opacity a f = { f | alpha <- a }
156+alpha a f = { f | alpha <- a }
157
157
158-- A collage is a collection of 2D forms. There are no strict positioning
158-- A collage is a collection of 2D forms. There are no strict positioning
159-- relationships between forms, so you are free to do all kinds of 2D graphics.
159-- relationships between forms, so you are free to do all kinds of 2D graphics.