package swizzle

import "golang.org/x/exp/shiny/driver/internal/swizzle"

Package swizzle provides functions for converting between RGBA pixel formats.

Index

Functions

func BGRA

func BGRA(p []byte)

BGRA converts a pixel buffer between Go's RGBA and other systems' BGRA byte orders.

It panics if the input slice length is not a multiple of 4.

Source Files

swizzle_amd64.go swizzle_common.go

Version
v0.0.0-20250218142911-aa4b98e5adaa (latest)
Published
Feb 18, 2025
Platform
linux/amd64
Last checked
1 month ago

Tools for package owners.