@@ -146,7 +146,7 @@ data CoordinateSystem
146
146
-- def {_arrowDrawBody=False})
147
147
-- stroke
148
148
-- :}
149
- -- docs/haddock/Draw/coordinate_system_cairo_standard.svg
149
+ -- Generated file: size 2KB, crc32: 0x22a87e3e
150
150
151
151
| MathStandard_ZeroBottomLeft_XRight_YUp Double
152
152
-- ^ __Right-handed coordinate system.__ Standard math coordinates, with
@@ -172,7 +172,7 @@ data CoordinateSystem
172
172
-- def {_arrowDrawBody=False})
173
173
-- stroke
174
174
-- :}
175
- -- docs/haddock/Draw/coordinate_system_math_standard.svg
175
+ -- Generated file: size 3KB, crc32: 0xd33a20ee
176
176
177
177
| MathStandard_ZeroCenter_XRight_YUp Double Double
178
178
-- ^ __Right-handed coordinate system.__ Standard math coordinates, with
@@ -198,7 +198,7 @@ data CoordinateSystem
198
198
-- def {_arrowDrawBody=False})
199
199
-- stroke
200
200
-- :}
201
- -- docs/haddock/Draw/coordinate_system_math_standard_centered.svg
201
+ -- Generated file: size 3KB, crc32: 0xe6e10f11
202
202
203
203
deriving (Eq , Ord , Show )
204
204
@@ -336,7 +336,7 @@ lineToVec (Vec2 x y) = lineTo x y
336
336
-- sketch (Bezier (Vec2 10 10) (Vec2 50 200) (Vec2 100 (-50)) (Vec2 140 90))
337
337
-- stroke
338
338
-- :}
339
- -- docs/haddock/Draw/instance_Sketch_Bezier.svg
339
+ -- Generated file: size 2KB, crc32: 0xe17dab02
340
340
instance Sketch Bezier where
341
341
sketch (Bezier start (Vec2 x1 y1) (Vec2 x2 y2) (Vec2 x3 y3)) = do
342
342
moveToVec start
@@ -387,7 +387,7 @@ data Arrow = Arrow !Line !ArrowSpec
387
387
-- sketch (Arrow (Line (Vec2 10 10) (Vec2 140 90)) def)
388
388
-- stroke
389
389
-- :}
390
- -- docs/haddock/Draw/instance_Sketch_Arrow.svg
390
+ -- Generated file: size 2KB, crc32: 0x2c724862
391
391
instance Sketch Arrow where
392
392
sketch (Arrow line ArrowSpec {.. }) = do
393
393
when _arrowDrawBody (sketch line)
@@ -448,7 +448,7 @@ instance Sketch a => Sketch (Maybe a) where
448
448
-- sketch (Line (Vec2 10 10) (Vec2 140 90))
449
449
-- stroke
450
450
-- :}
451
- -- docs/haddock/Draw/instance_Sketch_Line.svg
451
+ -- Generated file: size 2KB, crc32: 0x9287e4a8
452
452
instance Sketch Line where
453
453
sketch (Line start end) = do
454
454
moveToVec start
@@ -465,7 +465,7 @@ instance Sketch Line where
465
465
-- sketch (Polyline [Vec2 10 10, Vec2 90 90, Vec2 120 10, Vec2 140 50])
466
466
-- stroke
467
467
-- :}
468
- -- docs/haddock/Draw/instance_Sketch_Sequential_Vec2.svg
468
+ -- Generated file: size 2KB, crc32: 0x5d5a0158
469
469
instance Sketch Polyline where
470
470
sketch (Polyline xs) = go xs
471
471
where
@@ -484,7 +484,7 @@ instance Sketch Polyline where
484
484
-- sketch (Polygon [Vec2 20 10, Vec2 10 80, Vec2 45 45, Vec2 60 90, Vec2 90 30])
485
485
-- stroke
486
486
-- :}
487
- -- docs/haddock/Draw/instance_Sketch_Polygon.svg
487
+ -- Generated file: size 2KB, crc32: 0x7f620554
488
488
instance Sketch Polygon where
489
489
sketch (Polygon [] ) = pure ()
490
490
sketch (Polygon xs) = sketch (Polyline xs) >> closePath
@@ -498,7 +498,7 @@ instance Sketch Polygon where
498
498
-- sketch (Circle (Vec2 50 50) 45)
499
499
-- stroke
500
500
-- :}
501
- -- docs/haddock/Draw/instance_Sketch_Circle.svg
501
+ -- Generated file: size 2KB, crc32: 0xebd35c6d
502
502
instance Sketch Circle where
503
503
sketch (Circle (Vec2 x y) r) = arc x y r 0 (2 * pi )
504
504
@@ -513,7 +513,7 @@ instance Sketch Circle where
513
513
-- (toEllipse (Circle zero 45)))
514
514
-- stroke
515
515
-- :}
516
- -- docs/haddock/Draw/instance_Sketch_Ellipse.svg
516
+ -- Generated file: size 2KB, crc32: 0x25bae2ef
517
517
--
518
518
instance Sketch Ellipse where
519
519
sketch (Ellipse t) = cairoScope $ do
@@ -540,7 +540,7 @@ data Cross = Cross
540
540
-- sketch (Cross (Vec2 60 20) 15) >> stroke
541
541
-- sketch (Circle (Vec2 60 20) 15) >> stroke
542
542
-- :}
543
- -- docs/haddock/Draw/instance_Sketch_Cross.svg
543
+ -- Generated file: size 2KB, crc32: 0xe2cb8567
544
544
instance Sketch Cross where
545
545
sketch (Cross center r) = do
546
546
let lowerRight = G. transform (rotateAround center (deg 45 )) (center +. Vec2 r 0 )
@@ -562,7 +562,7 @@ instance Sketch Cross where
562
562
-- setColor (mathematica97 1) >> sketch (G.translate (Vec2 110 50) <> G.rotate (deg 30)) >> stroke
563
563
-- setColor (mathematica97 2) >> sketch (G.shear 0.5 0.2 <> G.translate (Vec2 140 0)) >> stroke
564
564
-- :}
565
- -- docs/haddock/Draw/instance_Sketch_Transformation.svg
565
+ -- Generated file: size 4KB, crc32: 0x1f4ae5da
566
566
instance Sketch Transformation where
567
567
sketch t = do
568
568
let grid = [Line (Vec2 0 y) (Vec2 100 y) | y <- map fromIntegral [0 ,20 .. 100 ]]
@@ -601,7 +601,7 @@ arcSketchNegative (Vec2 x y) r angleStart angleEnd
601
601
-- sketch (boundingBox geometry)
602
602
-- stroke
603
603
-- :}
604
- -- docs/haddock/Draw/instance_Sketch_BoundingBox.svg
604
+ -- Generated file: size 3KB, crc32: 0xfed2c044
605
605
instance Sketch BoundingBox where
606
606
sketch (BoundingBox (Vec2 xlo ylo) (Vec2 xhi yhi)) = do
607
607
let w = xhi - xlo
@@ -644,7 +644,7 @@ instance Default CartesianParams where
644
644
-- >>> :{
645
645
-- haddockRender "Draw/cartesianCoordinateSystem.svg" 320 220 (cartesianCoordinateSystem def)
646
646
-- :}
647
- -- docs/haddock/Draw/cartesianCoordinateSystem.svg
647
+ -- Generated file: size 21KB, crc32: 0xf43aac0c
648
648
cartesianCoordinateSystem :: CartesianParams -> Render ()
649
649
cartesianCoordinateSystem params@ CartesianParams {.. } = grouped (paintWithAlpha _cartesianAlpha) $ do
650
650
let vec2 x y = Vec2 (fromIntegral x) (fromIntegral y)
@@ -706,7 +706,7 @@ instance Default PolarParams where
706
706
-- C.translate 50 50
707
707
-- radialCoordinateSystem def
708
708
-- :}
709
- -- docs/haddock/Draw/radialCoordinateSystem.svg
709
+ -- Generated file: size 26KB, crc32: 0x9b68b36
710
710
radialCoordinateSystem :: PolarParams -> Render ()
711
711
radialCoordinateSystem PolarParams {_polarCenter= center, _polarMaxRadius= maxR} = cairoScope $ do
712
712
setLineWidth 1
@@ -771,7 +771,7 @@ withOperator op actions = do
771
771
-- sketch line
772
772
-- stroke
773
773
-- :}
774
- -- docs/haddock/Draw/cairoScope.svg
774
+ -- Generated file: size 2KB, crc32: 0x2d7bee90
775
775
--
776
776
-- <<docs/haddock/Draw/cairoScope.svg>>
777
777
cairoScope :: Render a -> Render a
0 commit comments