Artifact 74e784ebd9e41e636c83299a855fee88aab8b68afcac83825fa30357136cf009:
- File doc/ref/transform_sdf.md — part of check-in [877403cead] at 2025-03-05 20:07:47 on branch trunk — feat: image readers for reading from a string/bytearray feat: removed need for a temp file from the image -> tk photo conversion note: readers became ensembles chore: fix all uses of the `file` readers to match the changed syntax chore: regenerated docs (user: aku size: 11553)

| Project ↗ | Documentation ↗ | — | Tutorials ↗ | How To's ↗ | Explanations ↗ | References |
| Entry ↗ | — | Sections ↘ | Permuted Sections ↘ | Names ↘ | Permuted Names ↘ | Strict ↘ | Implementations ↘ |
Documentation -- Reference Pages -- transform sdf
<anchor='top'> Table Of Contents
Subsections
Operators
- aktive op sdf 2image fit
- aktive op sdf 2image pixelated
- aktive op sdf 2image smooth
- aktive op sdf not
- aktive op sdf outline
- aktive op sdf ring
- aktive op sdf round
Operators
↑ aktive op sdf 2image fit
Syntax: aktive op sdf 2image fit src [→ definition]
Compresses the input SDF into the range 0..1 and returns the resulting grayscale image.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
@2
|
aktive op sdf and @1 @2
| ||
|---|---|---|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
|
References
↑ aktive op sdf 2image pixelated
Syntax: aktive op sdf 2image pixelated src [→ definition]
Converts the SDF into a black/white image with pixelated element borders.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
@2
|
aktive op sdf and @1 @2
| ||
|---|---|---|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
|
References
↑ aktive op sdf 2image smooth
Syntax: aktive op sdf 2image smooth src [→ definition]
Converts the SDF into a grey-scale image with anti-aliased element borders.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
@2
|
aktive op sdf and @1 @2
| ||
|---|---|---|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
|
References
↑ aktive op sdf not
Syntax: aktive op sdf not src [→ definition]
Returns the inverted input SDF, where inside and outside changed places. This is defined as 1 - SRC.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op sdf not @1
| |||||||
|---|---|---|---|---|---|---|---|---|
geometry(0 0 128 128 1) |
|
References
↑ aktive op sdf outline
Syntax: aktive op sdf outline src [→ definition]
Replaces the input SDF with an outlined form, and returns the result.
This is implemented by taking the absolute of the input.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op sdf outline @1
| |||||||
|---|---|---|---|---|---|---|---|---|
geometry(0 0 128 128 1) |
|
References
↑ aktive op sdf ring
Syntax: aktive op sdf ring src (param value)... [→ definition]
Combines outlining and rounding to replace the input SDF with an SDF tracing the border at some thickness and returns the result.
The result is annular, i.e. has a ring/onion-like structure.
Note that a thickness of zero devolves this operation to a plain outline.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| thickness | uint | Desired border thickness. |
Examples
| @1
|
aktive op sdf ring @1 thickness 4
| |||||||
|---|---|---|---|---|---|---|---|---|
geometry(0 0 128 128 1) |
|
References
↑ aktive op sdf round
Syntax: aktive op sdf round src (param value)... [→ definition]
Replaces the input SDF with a more rounded form per the radius, and returns the result.
This is implemented by shifting the input SDF down by the radius.
For a radius > 0 this expands the SDF, making the encoded element rounder. A radius < 0 conversely shrinks the SDF.
To get a rounded SDF at the original size use a pre-shrunken/expanded SDF as the input to compensate the changes made by this operator.
A radius of zero is ignored.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| radius | uint | Expansion/Shrinkage radius for the SDF. |
Examples
| @1
|
aktive op sdf round @1 radius 20
| |||||||
|---|---|---|---|---|---|---|---|---|
geometry(0 0 128 128 1) |
|