| Crates.io | skia-rs-core |
| lib.rs | skia-rs-core |
| version | 0.2.0 |
| created_at | 2026-01-02 20:20:48.748041+00 |
| updated_at | 2026-01-03 18:44:24.447781+00 |
| description | Core types for skia-rs: geometry, color, and pixel storage |
| homepage | https://github.com/pegasusheavy/skia-rs |
| repository | https://github.com/pegasusheavy/skia-rs |
| max_upload_size | |
| id | 2019156 |
| size | 152,482 |
Core types for skia-rs, a pure Rust implementation of the Skia 2D graphics library.
Point, IPoint, Rect, IRect, RRectMatrix (3x3), Matrix44 (4x4)Color, Color4f, ColorSpace, ICC profilesImageInfo, Pixmap, BitmapRegion with boolean operationsuse skia_rs_core::{Point, Rect, Matrix, Color};
// Create points and rectangles
let p = Point::new(10.0, 20.0);
let rect = Rect::from_xywh(0.0, 0.0, 100.0, 50.0);
// Transform with matrices
let m = Matrix::rotate(45.0);
let rotated_point = m.map_point(p);
// Work with colors
let red = Color::from_rgb(255, 0, 0);
let transparent_red = red.with_alpha(128);
MIT OR Apache-2.0
See the main repository for more information.