haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Graphics.Diagrams

Description

Diagrams utilities (specialized for the rasterific backend)

Synopsis

Documentation

rasterizeDiagram :: TypeableFloat n => SizeSpec V2 n -> VDiagram' n -> Image PixelRGBA8 Source #

Render a diagram into an image that can be displayed on a framebuffer

module Diagrams

text' :: (TypeableFloat n, Renderable (Text n) b) => FontSlant -> FontWeight -> String -> QDiagram b V2 n Any Source #

Create a primitive text diagram from the given FontSlant, FontWeight, and string, with baseline alignment, envelope and trace based on the BoundingBox of the text.

text :: (TypeableFloat n, Renderable (Text n) b) => String -> QDiagram b V2 n Any Source #

Create a primitive text diagram from the given string, with baseline alignment, envelope and trace based on the BoundingBox of the text.