Graphics.Glapple.Data.Picture
- Package
- purescript-glappleDEPRECATED
- Repository
- yukikurage/purescript-glapple
#(<-*) Source
Operator alias for Graphics.Glapple.Data.Picture.multiplyComposite (left-associative / precedence 5)
#(<-+) Source
Operator alias for Graphics.Glapple.Data.Picture.addComposite (left-associative / precedence 5)
#(<-.) Source
Operator alias for Graphics.Glapple.Data.Picture.destinationOverComposite (left-associative / precedence 5)
#(<-^) Source
Operator alias for Graphics.Glapple.Data.Picture.sourceOverComposite (left-associative / precedence 5)
#(|*|) Source
Operator alias for Graphics.Glapple.Data.Picture.multiplyTransform (right-associative / precedence 7)
#DrawStyle Source
data DrawStyle sprite
Constructors
LinearGradient { colorStops :: Array (Number /\ Color), x0 :: Number, x1 :: Number, y0 :: Number, y1 :: Number }
RadialGradient { colorStops :: Array (Number /\ Color), r0 :: Number, r1 :: Number, x0 :: Number, x1 :: Number, y0 :: Number, y1 :: Number }
Pattern { repeat :: PatternRepeat, sprite :: sprite }
MonoColor Color
Instances
#FontFamily Source
#FontWeight Source
#angleToTransform Source
angleToTransform :: Number -> Transform
convert angle to Transform
#destinationOverComposite Source
destinationOverComposite :: forall s. Picture s -> Picture s -> Picture s
#drawPicture Source
drawPicture :: forall sprite. Context2D -> (sprite -> Maybe CanvasImageSource) -> Picture sprite -> Aff Unit
Draw a picture It is not recommended to use this except for the glapple system.
#drawWithTransform Source
drawWithTransform :: forall s. (Transform -> Picture s) -> Picture s
Retrieves the current transform state and draws a Picture.
#textBaseLine Source
textBaseLine :: forall s. TextBaseline -> Picture s -> Picture s
Set textBaseLine.
#translateToTransform Source
translateToTransform :: Number -> Number -> Transform
convert parallel movement to Transform
#tryLoadImageAff Source
tryLoadImageAff :: String -> Aff CanvasImageSource
Aff version of tryLoadImage
- Modules
- Graphics.
Glapple - Graphics.
Glapple. Data. Emitter - Graphics.
Glapple. Data. Event - Graphics.
Glapple. Data. GameId - Graphics.
Glapple. Data. GameSpec - Graphics.
Glapple. Data. GameSpecM - Graphics.
Glapple. Data. InternalRegistrationIds - Graphics.
Glapple. Data. Picture - Graphics.
Glapple. Data. SpriteData - Graphics.
Glapple. GameRunner - Graphics.
Glapple. GameRunnerM - Graphics.
Glapple. GlappleM