![]() |
tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
|
#include <image.h>
Public Attributes | |
| TinyShapeKind | kind |
| float | geometry [5] |
| uint32_t | point_first |
| uint32_t | point_count |
| uint8_t | color [4] |
| TinyBlendMode | blend |
| TinyFillRule | rule |
| float | transform [6] |
| The transform in force when the shape was added, as a 2x3 affine. | |
One shape, with the transform in force when it was added.
| TinyBlendMode TinyShape::blend |
How it meets what is under it.
| uint8_t TinyShape::color[4] |
Its color, as many channels as the target will have.
| float TinyShape::geometry[5] |
Its geometry, read according to kind.
| TinyShapeKind TinyShape::kind |
Which shape.
| uint32_t TinyShape::point_count |
How many vertices it has.
| uint32_t TinyShape::point_first |
Where its vertices start, for a polygon.
| TinyFillRule TinyShape::rule |
Which points a polygon fill counts as inside.
| float TinyShape::transform[6] |
The transform in force when the shape was added, as a 2x3 affine.
Held per shape rather than applied when the shape was added, which is what "symbolic until one rasterization" means: the list can be measured, culled and reordered before any pixel exists.