Add source files, commit before reverting pictures to lists

This commit is contained in:
2021-02-15 00:07:55 +01:00
parent c6bcfacc7a
commit 8447844bcd
41 changed files with 13677 additions and 35 deletions
+25
View File
@@ -0,0 +1,25 @@
module Dodge.LightSources where
import Dodge.Data
import Dodge.Base
import Geometry
import Picture
--import Graphics.Gloss
--import Graphics.Gloss.Data.Vector
--import Graphics.Gloss.Geometry.Line
--import Graphics.Gloss.Geometry.Angle
import qualified Data.IntMap.Strict as IM
lightAt p i =
LS {_lsID = i
,_lsPos = p
,_lsDir = 0
,_lsRad = 300
,_lsIntensity = 0.25
}
basicLS = PutLS ls dec
where ls = lightAt (0,0) 0
dec = onLayer PtLayer $ color white $ circleSolid 8