Move sparks into dedicated datatype
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module Dodge.Spark.Draw where
|
||||
import Dodge.Data
|
||||
import Picture
|
||||
|
||||
drawSpark :: Spark -> Picture
|
||||
drawSpark pt = setLayer BloomNoZWrite
|
||||
. setDepth 20
|
||||
. color (_skColor pt)
|
||||
$ thickLine (_skWidth pt) [_skOldPos pt, _skPos pt]
|
||||
Reference in New Issue
Block a user