Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. newtype PointSize

    FontyFruity Graphics.Text.TrueType

    Font size expressed in points. You must convert size expressed in pixels to point using the DPI information. See pixelSizeInPointAtDpi

  2. PointSize :: Float -> PointSize

    FontyFruity Graphics.Text.TrueType

    No documentation available.

  3. PatchBicubic :: PatchInterpolation

    Rasterific Graphics.Rasterific

    Bicubic interpolation

    import qualified Data.Vector as V
    let colorCycle = cycle
    [ PixelRGBA8 0 0x86 0xc1 255
    , PixelRGBA8 0xff 0xf4 0xc1 255
    , PixelRGBA8 0xFF 0x53 0x73 255
    , PixelRGBA8 0xff 0xf4 0xc1 255
    , PixelRGBA8 0 0x86 0xc1 255]
    colors = V.fromListN (4 * 4) colorCycle
    renderMeshPatch PatchBicubic $ generateLinearGrid 3 3 (V2 10 10) (V2 60 60) colors
    

  4. PatchBilinear :: PatchInterpolation

    Rasterific Graphics.Rasterific

    Bilinear interpolation

    import qualified Data.Vector as V
    let colorCycle = cycle
    [ PixelRGBA8 0 0x86 0xc1 255
    , PixelRGBA8 0xff 0xf4 0xc1 255
    , PixelRGBA8 0xFF 0x53 0x73 255
    , PixelRGBA8 0xff 0xf4 0xc1 255
    , PixelRGBA8 0 0x86 0xc1 255]
    colors = V.fromListN (4 * 4) colorCycle
    renderMeshPatch PatchBilinear $ generateLinearGrid 3 3 (V2 10 10) (V2 60 60) colors
    

  5. data PatchInterpolation

    Rasterific Graphics.Rasterific

    How do we want to perform color/image interpolation within the patch.

  6. data Path

    Rasterific Graphics.Rasterific

    Describe a path in a way similar to many graphical packages, using a "pen" position in memory and reusing it for the next "move" For example the example from Primitive could be rewritten:

    fill $ Path (V2 50 20) True
    [ PathCubicBezierCurveTo (V2 90 60) (V2  5 100) (V2 50 140)
    , PathLineTo (V2 120 80) ]
    

  7. Path :: Point -> Bool -> [PathCommand] -> Path

    Rasterific Graphics.Rasterific

    No documentation available.

  8. data PathCommand

    Rasterific Graphics.Rasterific

    Actions to create a path

  9. PathCubicBezierCurveTo :: Point -> Point -> Point -> PathCommand

    Rasterific Graphics.Rasterific

    Draw a cubic bezier curve using 2 control points.

  10. PathLineTo :: Point -> PathCommand

    Rasterific Graphics.Rasterific

    Draw a line from the current point to another point

Page 665 of many | Previous | Next