tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
Loading...
Searching...
No Matches
TinyShape Struct Reference

#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.

Detailed Description

One shape, with the transform in force when it was added.

Member Data Documentation

◆ blend

TinyBlendMode TinyShape::blend

How it meets what is under it.

◆ color

uint8_t TinyShape::color[4]

Its color, as many channels as the target will have.

◆ geometry

float TinyShape::geometry[5]

Its geometry, read according to kind.

◆ kind

TinyShapeKind TinyShape::kind

Which shape.

◆ point_count

uint32_t TinyShape::point_count

How many vertices it has.

◆ point_first

uint32_t TinyShape::point_first

Where its vertices start, for a polygon.

◆ rule

TinyFillRule TinyShape::rule

Which points a polygon fill counts as inside.

◆ transform

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.


The documentation for this struct was generated from the following file: