File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 19
19
20
20
module Main where
21
21
22
- import Data.RTree.Double.Strict (RTree , MBR )
23
- import qualified Data.RTree.Double.Strict as R
24
- import Data.RTree.Double.Strict.Debug
25
- import qualified Data.RTree.Double.Strict.Unsafe as R
22
+ import Data.RTree.D2.Double (RTree , MBR )
23
+ import qualified Data.RTree.D2.Double as R
24
+ import qualified Data.RTree.D2.Double.Unsafe as R
26
25
27
26
import Control.Concurrent
28
27
import Control.Exception
29
28
import Control.Monad
30
29
import qualified Data.ByteString.Char8 as BSC
31
30
import Data.ByteString.Internal (ByteString (.. ))
32
31
import Data.ByteString.Unsafe
33
- import Data.Colour
34
32
import Data.Colour.Names
35
33
import Data.Colour.SRGB
36
34
import Data.Colour.RGBSpace.HSV
@@ -401,7 +399,7 @@ mbr (R.UnsafeMBR xmin ymin xmax ymax) rgb =
401
399
]
402
400
403
401
visualize :: Mode -> RTree a -> [Point ]
404
- visualize mode ( R. Root r) = visual 0 r
402
+ visualize mode = visual 0
405
403
where
406
404
wash i
407
405
| i <= 0 = hsv (modeHue mode) 1 1
@@ -432,8 +430,8 @@ visualize mode (R.Root r) = visual 0 r
432
430
R. Leaf4 ba _ bb _ bc _ bd _ ->
433
431
mbr ba (toSRGB white) <> mbr bb (toSRGB white) <> mbr bc (toSRGB white) <> mbr bd (toSRGB white)
434
432
435
- visualize _ ( R. Leaf1 ba _) = mbr ba (toSRGB white)
436
- visualize _ R. Empty = []
433
+ R. Leaf1 ba _ -> mbr ba (toSRGB white)
434
+ R. Empty -> []
437
435
438
436
439
437
draw :: State -> IO ()
You can’t perform that action at this time.
0 commit comments