Allow for items to cast shadows

This commit is contained in:
2021-09-18 11:00:52 +01:00
parent 6ac53c052c
commit 2d8f1089a1
18 changed files with 236 additions and 172 deletions
+8
View File
@@ -4,8 +4,16 @@ module ShapePicture.Data
where
import Shape
import Picture
import Control.Lens
data SPic = SPic
{ _spShape :: Shape
, _spPicture :: Picture
}
instance Semigroup SPic where
(<>) (SPic a b) (SPic x y) = SPic (a <> x) (b <>y)
instance Monoid SPic where
mempty = SPic emptySH blank
makeLenses ''SPic