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 spriteConstructors
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 -> Transformconvert 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 UnitDraw a picture It is not recommended to use this except for the glapple system.
#drawWithTransform Source
drawWithTransform :: forall s. (Transform -> Picture s) -> Picture sRetrieves the current transform state and draws a Picture.
#textBaseLine Source
textBaseLine :: forall s. TextBaseline -> Picture s -> Picture sSet textBaseLine.
#translateToTransform Source
translateToTransform :: Number -> Number -> Transformconvert parallel movement to Transform
#tryLoadImageAff Source
tryLoadImageAff :: String -> Aff CanvasImageSourceAff 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