@dusrel/image API
    Preparing search index...

    Function rotateQuarter

    @dusrel/image-transform

    Pixel-exact transforms for the @dusrel/image family: flips and quarter-turn rotations are pure permutations (no resampling, no quality loss), arbitrary-angle rotation uses the platform canvas, background fill composites over a colour, and the perspective helpers compute and apply true homographies on the CPU. Everything works on a structural PixelData ({ data, width, height }) so it runs in workers, tests and any JS runtime, and drops straight into @dusrel/image's imageDataPlugin.

    • Rotates by quarter turns clockwise (1, 2 or 3; negative values wrap, so -1 = one turn counter-clockwise). Exact pixel permutation — no resampling, no quality loss.

      Parameters

      Returns PixelData