module Graphics.Blank.Generated where
import Graphics.Blank.Canvas
import Graphics.Blank.JavaScript
import Data.Text (Text)
instance Show Method where
show (Arc (a1,a2,a3,a4,a5,a6)) = "arc(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ "," ++ jsDouble a5 ++ "," ++ jsBool a6 ++ ")"
show (ArcTo (a1,a2,a3,a4,a5)) = "arcTo(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ "," ++ jsDouble a5 ++ ")"
show BeginPath = "beginPath()"
show (BezierCurveTo (a1,a2,a3,a4,a5,a6)) = "bezierCurveTo(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ "," ++ jsDouble a5 ++ "," ++ jsDouble a6 ++ ")"
show (ClearRect (a1,a2,a3,a4)) = "clearRect(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ ")"
show Clip = "clip()"
show ClosePath = "closePath()"
show (DrawImage (a1,a2)) = "drawImage(" ++ jsImage a1 ++ "," ++ jsList jsDouble a2 ++ ")"
show Fill = "fill()"
show (FillRect (a1,a2,a3,a4)) = "fillRect(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ ")"
show (FillStyle (a1)) = "fillStyle = (" ++ jsStyle a1 ++ ")"
show (FillText (a1,a2,a3)) = "fillText(" ++ jsText a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ ")"
show (Font (a1)) = "font = (" ++ jsText a1 ++ ")"
show (GlobalAlpha (a1)) = "globalAlpha = (" ++ jsDouble a1 ++ ")"
show (GlobalCompositeOperation (a1)) = "globalCompositeOperation = (" ++ jsText a1 ++ ")"
show (LineCap (a1)) = "lineCap = (" ++ jsLineEndCap a1 ++ ")"
show (LineJoin (a1)) = "lineJoin = (" ++ jsLineJoinCorner a1 ++ ")"
show (LineTo (a1,a2)) = "lineTo(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ ")"
show (LineWidth (a1)) = "lineWidth = (" ++ jsDouble a1 ++ ")"
show (MiterLimit (a1)) = "miterLimit = (" ++ jsDouble a1 ++ ")"
show (MoveTo (a1,a2)) = "moveTo(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ ")"
show (PutImageData (a1,a2)) = "putImageData(" ++ jsImageData a1 ++ "," ++ jsList jsDouble a2 ++ ")"
show (QuadraticCurveTo (a1,a2,a3,a4)) = "quadraticCurveTo(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ ")"
show (Rect (a1,a2,a3,a4)) = "rect(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ ")"
show Restore = "restore()"
show (Rotate (a1)) = "rotate(" ++ jsDouble a1 ++ ")"
show Save = "save()"
show (Scale (a1,a2)) = "scale(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ ")"
show (SetTransform (a1,a2,a3,a4,a5,a6)) = "setTransform(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ "," ++ jsDouble a5 ++ "," ++ jsDouble a6 ++ ")"
show (ShadowBlur (a1)) = "shadowBlur = (" ++ jsDouble a1 ++ ")"
show (ShadowColor (a1)) = "shadowColor = (" ++ jsCanvasColor a1 ++ ")"
show (ShadowOffsetX (a1)) = "shadowOffsetX = (" ++ jsDouble a1 ++ ")"
show (ShadowOffsetY (a1)) = "shadowOffsetY = (" ++ jsDouble a1 ++ ")"
show Stroke = "stroke()"
show (StrokeRect (a1,a2,a3,a4)) = "strokeRect(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ ")"
show (StrokeStyle (a1)) = "strokeStyle = (" ++ jsStyle a1 ++ ")"
show (StrokeText (a1,a2,a3)) = "strokeText(" ++ jsText a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ ")"
show (TextAlign (a1)) = "textAlign = (" ++ jsTextAnchorAlignment a1 ++ ")"
show (TextBaseline (a1)) = "textBaseline = (" ++ jsTextBaselineAlignment a1 ++ ")"
show (Transform (a1,a2,a3,a4,a5,a6)) = "transform(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ "," ++ jsDouble a3 ++ "," ++ jsDouble a4 ++ "," ++ jsDouble a5 ++ "," ++ jsDouble a6 ++ ")"
show (Translate (a1,a2)) = "translate(" ++ jsDouble a1 ++ "," ++ jsDouble a2 ++ ")"
arc :: (Double, Double, Double, Double, Double, Bool) -> Canvas ()
arc = Method . Arc
arcTo :: (Double, Double, Double, Double, Double) -> Canvas ()
arcTo = Method . ArcTo
beginPath :: () -> Canvas ()
beginPath () = Method BeginPath
bezierCurveTo :: (Double, Double, Double, Double, Double, Double) -> Canvas ()
bezierCurveTo = Method . BezierCurveTo
clearRect :: (Double, Double, Double, Double) -> Canvas ()
clearRect = Method . ClearRect
clip :: () -> Canvas ()
clip () = Method Clip
closePath :: () -> Canvas ()
closePath () = Method ClosePath
drawImage :: Image image => (image,[Double]) -> Canvas ()
drawImage = Method . DrawImage
fill :: () -> Canvas ()
fill () = Method Fill
fillRect :: (Double, Double, Double, Double) -> Canvas ()
fillRect = Method . FillRect
fillStyle :: Style style => style -> Canvas ()
fillStyle = Method . FillStyle
fillText :: (Text, Double, Double) -> Canvas ()
fillText = Method . FillText
font :: Text -> Canvas ()
font = Method . Font
globalAlpha :: Double -> Canvas ()
globalAlpha = Method . GlobalAlpha
globalCompositeOperation :: Text -> Canvas ()
globalCompositeOperation = Method . GlobalCompositeOperation
lineCap :: LineEndCap -> Canvas ()
lineCap = Method . LineCap
lineJoin :: LineJoinCorner -> Canvas ()
lineJoin = Method . LineJoin
lineTo :: (Double, Double) -> Canvas ()
lineTo = Method . LineTo
lineWidth :: Double -> Canvas ()
lineWidth = Method . LineWidth
miterLimit :: Double -> Canvas ()
miterLimit = Method . MiterLimit
moveTo :: (Double, Double) -> Canvas ()
moveTo = Method . MoveTo
putImageData :: (ImageData, [Double]) -> Canvas ()
putImageData = Method . PutImageData
quadraticCurveTo :: (Double, Double, Double, Double) -> Canvas ()
quadraticCurveTo = Method . QuadraticCurveTo
rect :: (Double, Double, Double, Double) -> Canvas ()
rect = Method . Rect
restore :: () -> Canvas ()
restore () = Method Restore
rotate :: Double -> Canvas ()
rotate = Method . Rotate
save :: () -> Canvas ()
save () = Method Save
scale :: (Double, Double) -> Canvas ()
scale = Method . Scale
setTransform :: (Double, Double, Double, Double, Double, Double) -> Canvas ()
setTransform = Method . SetTransform
shadowBlur :: Double -> Canvas ()
shadowBlur = Method . ShadowBlur
shadowColor :: CanvasColor canvasColor => canvasColor -> Canvas ()
shadowColor = Method . ShadowColor
shadowOffsetX :: Double -> Canvas ()
shadowOffsetX = Method . ShadowOffsetX
shadowOffsetY :: Double -> Canvas ()
shadowOffsetY = Method . ShadowOffsetY
stroke :: () -> Canvas ()
stroke () = Method Stroke
strokeRect :: (Double, Double, Double, Double) -> Canvas ()
strokeRect = Method . StrokeRect
strokeStyle :: Style style => style -> Canvas ()
strokeStyle = Method . StrokeStyle
strokeText :: (Text,Double, Double) -> Canvas ()
strokeText = Method . StrokeText
textAlign :: TextAnchorAlignment -> Canvas ()
textAlign = Method . TextAlign
textBaseline :: TextBaselineAlignment -> Canvas ()
textBaseline = Method . TextBaseline
transform :: (Double, Double, Double, Double, Double, Double) -> Canvas ()
transform = Method . Transform
translate :: (Double, Double) -> Canvas ()
translate = Method . Translate