skia-rs-core
Core types for skia-rs, a pure Rust implementation of the Skia 2D graphics library.
Features
- Geometry primitives:
Point,IPoint,Rect,IRect,RRect - Transformations:
Matrix(3x3),Matrix44(4x4) - Color:
Color,Color4f,ColorSpace, ICC profiles - Pixel storage:
ImageInfo,Pixmap,Bitmap - Clipping:
Regionwith boolean operations
Usage
use ;
// Create points and rectangles
let p = new;
let rect = from_xywh;
// Transform with matrices
let m = rotate;
let rotated_point = m.map_point;
// Work with colors
let red = from_rgb;
let transparent_red = red.with_alpha;
License
MIT OR Apache-2.0
See the main repository for more information.