packages feed

graphics-drawingcombinators 1.0.2 → 1.0.3

raw patch · 3 files changed

+6/−6 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

Graphics/DrawingCombinators.hs view
@@ -234,8 +234,8 @@ (%%) :: Affine -> Image a -> Image a tr' %% d = Image render pick     where-    render tr col = dRender d (tr' `compose` tr) col-    pick tr z = dPick d (tr' `compose` tr) z+    render tr col = dRender d (tr `compose` tr') col+    pick tr z = dPick d (tr `compose` tr') z   {------------
example.hs view
@@ -20,9 +20,9 @@                             Draw.tint color (Draw.convexPoly [(1,1),(1,-1),(-1,-1),(-1,1)])  juxtapose :: (Monoid a) => Draw.Image a -> Draw.Image a -> Draw.Image a-juxtapose d1 d2 = (Draw.translate (-1,0) Draw.%% Draw.scale 0.5 1 Draw.%% d1)+juxtapose d1 d2 = (Draw.translate (-0.5,0) Draw.%% Draw.scale 0.5 1 Draw.%% d1)                     `mappend`-                  (Draw.translate (1,0) Draw.%% Draw.scale 0.5 1 Draw.%% d2)+                  (Draw.translate (0.5,0) Draw.%% Draw.scale 0.5 1 Draw.%% d2)  drawing :: Draw.Font -> Draw.Image (Maybe String) drawing font = juxtapose (textBox (Draw.Color 1 0 0 1) font "A") 
graphics-drawingcombinators.cabal view
@@ -4,7 +4,7 @@     have to go into the deep, dark world of imperative stateful     programming just to draw stuff.  It supports 2D only (for now),     with support drawing geometry, images, and text.-Version: 1.0.2+Version: 1.0.3 Stability: experimental Synopsis: A functional interface to 2D drawing in OpenGL License: BSD3@@ -13,6 +13,6 @@ Homepage: http://github.com/luqui/graphics-drawingcombinators Maintainer: lrpalmer@gmail.com Build-Type: Simple-Build-Depends: base >= 3 && <= 4.1, mtl, containers, SDL, SDL-ttf, SDL-image, OpenGL+Build-Depends: base <= 4, mtl, containers, SDL, SDL-ttf, SDL-image, OpenGL Exposed-Modules: Graphics.DrawingCombinators, Graphics.DrawingCombinators.Affine Extra-Source-Files: example.hs