Fix some shapes

This commit is contained in:
2023-03-25 17:56:20 +00:00
parent 3dd386e908
commit 7d96616b91
3 changed files with 18 additions and 13 deletions
+4 -6
View File
@@ -1,13 +1,13 @@
module Dodge.Block.Draw
where
import Shape
module Dodge.Block.Draw (drawBlock) where
import Dodge.Data.Block
import Shape
import ShapePicture
drawBlock :: BlockDraw -> Block -> SPic
drawBlock bd = case bd of
BlockDrawMempty -> const mempty
BlockDraws bds -> \bl -> foldMap (`drawBlock` bl) bds
BlockDraws bds -> \bl -> foldMap (`drawBlock` bl) bds
BlockDrawColHeightPoss col h ps -> const $ noPic $ colorSH col (upperBox Medium Typical h ps)
BlockDrawBlSh x -> noPic . doBlSh x
@@ -15,5 +15,3 @@ doBlSh :: BlSh -> Block -> Shape
doBlSh bs = case bs of
BlShMempty -> const mempty
BlShConst sh -> const sh