Skip to content

Latest commit

 

History

93 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brushcue

PyPI - Version

Brushcue is a GPU-accelerated image editing library for Python. Every operation is a composable graph node — adjust color and tone, apply filters and blurs, composite images with a full set of blend modes, transform and crop, run ML-powered segmentation, or write custom GPU shaders. Chain nodes together and call .execute() once to run the whole pipeline.

Examples of things you can make

Install

pip install brushcue

Documentation

The full documentation is available here.

Quickstart

import brushcue

ctx = brushcue.Context()

image = brushcue.Composition.load("photo.png")
grayscale = image.grayscale()

composition = grayscale.execute(ctx)
output_bytes = composition.to_image_bytes(ctx)

with open("output.png", "wb") as f:
    f.write(output_bytes)

Examples

All the BrushCue tools are available as examples to learn how to use our API.

About

A Python API for computation and rendering using the Brushcue system.

Topics

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Contributors

Languages