Nobody Pays (for) Magazines
    Wondering what’s next for npm?Check out our public roadmap! »

    big-triangle

    1.0.0 • Public • Published

    Big Triangle

    This module is useful to get vertices for a "big triangle". This is typically used for full-screen fragment shaders. You can pass the number of dimensions ( 2 - 4 ) that you wish to be outputted ( different use-cases may prefer different dimensionality ).

    Example useage

    import BigTriangle from 'big-triangle'
     
    const bt = BigTriangle(2)
     
    // output is a float32array of 2d vertices for you big triangle

    Install

    npm i big-triangle

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar